互动拼写检查程序可用于emacs [英] Interactive Spell Checking Programs Available for emacs

查看:200
本文介绍了互动拼写检查程序可用于emacs的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近切换到emacs24并升级到Ubuntu 12.04。我似乎无法再次正常工作。我普遍认为臀部要比普通的好。 Hunspell只想使用澳大利亚字典而不是英文美国词典或冻结我的系统。使用aspell,我没有问题切换字典或运行flyspell模式。

I recently switched to emacs24 and upgraded to Ubuntu 12.04. I can't seem to get hunspell working correctly again. I find hunspell to be better than aspell generally. Hunspell only wants to use the Australian dictionary and not English US dictionary or freezes up my system. With aspell I have no problem switching dictionaries or running flyspell mode.

我的问题是人们如何设置互动拼写在emacs24?仍然使用ispell和flyspell或任何其他设置首选。你用emacs24使用hunspell吗?我可能会继续尝试让这个工作,但想确认其他人没有任何问题。

My question is how do people have setup interactive spelling in emacs24?? Still using ispell and flyspell or any other setups preferred. Are you using hunspell with emacs24? I may continue to try to get this working but want to confirm elsewhere people don't have any issues.

推荐答案

我用hunspell在OS X(通过自制软件安装)与由bzr构建的Emacs 24。我的.emacs的相关部分如下。我还没有切换字典,所以我不能帮忙。我花了一段时间才能完成事情,这是一段时间以前,所以我不记得为什么一切都是这样。

I use hunspell on OS X (installed via homebrew) with Emacs 24 built from bzr. The relevant portions of my .emacs are below. I have not switched dictionaries however, so I can't help with that. It took me a while to get things set up, and it was a while ago so I don't remember why everything is the way it is.

(setq-default ispell-program-name "hunspell")
(setq ispell-dictionary "american"
  ispell-extra-args '() ;; TeX mode "-t"
  ispell-silently-savep t
  )

(setq flyspell-mode-map nil)

(add-hook 'ispell-initialize-spellchecker-hook
      (lambda ()
    (setq ispell-base-dicts-override-alist
          '((nil ; default
         "[A-Za-z]" "[^A-Za-z]" "[']" t
         ("-d" "en_US" "-i" "utf-8") nil utf-8)
        ("american" ; Yankee English
         "[A-Za-z]" "[^A-Za-z]" "[']" t
         ("-d" "en_US" "-i" "utf-8") nil utf-8)
        ("british" ; British English
         "[A-Za-z]" "[^A-Za-z]" "[']" t
         ("-d" "en_GB" "-i" "utf-8") nil utf-8)))))

这篇关于互动拼写检查程序可用于emacs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆