我收到此错误信息,而在文本模式下使用flyspell模式,当我尝试加载“german8”拼写字典:Emacs和ispell的:错误加载german8
Error in post-command-hook (flyspell-post-command-hook): (error "Error: The file "/usr/lib/aspell/deutsch\" can not be opened for reading.")
我检查,也没有/ usr/lib中/中的aspell /德语。 Ubuntu突触式软件包管理器给我提供了“aspell-de”,但没有清楚。
下面是我的.emacs的代码,解铃:
;;switch dictionaries between German and English with F8 key
(defun fd-switch-dictionary()
(interactive)
(let* ((dic ispell-current-dictionary)
(change (if (string= dic "deutsch8") "english" "deutsch8")))
(ispell-change-dictionary change)
(message "Dictionary switched from %s to %s" dic change)
))
(global-set-key (kbd "<f8>") 'fd-switch-dictionary)
我可以通过简单地启动flyspell模式则试图做的ispell变化词典重复同样的错误。 german8被提供,但再次出现的消息:
Error enabling Flyspell mode:
(Error: The file "/usr/lib/aspell/german" can not be opened for reading.)
感谢您的帮助,但它不是真的工作。我仍然得到'code'“启动新的ispell过程[在/ usr/bin中/中的aspell ::默认] ... 的ispell过程杀死 当地的ispell字典设置为deutsch8 词典从零切换到deutsch8 开始新的ispell工艺[/ usr/lib/aspell :: deutsch8] ... post-command-hook(flyspell-post-command-hook)错误:(error“Error:The file \”/ usr/lib/aspell/deutsch \“can不能打开阅读。“)”'代码' – user2054900 2013-03-14 19:07:39
.../usr/lib/aspell/deutsch不存在。我需要一个sym链接到某个东西吗? – user2054900 2013-03-14 19:21:11
我的错误。您正尝试使用“deutsch8”字典,但是我的定义改为定义了“german8”。我的答案应该现在解决。 – 2013-03-15 18:03:43