Emacs 和 ispell : error loading german8

标签 emacs elisp

当我在文本模式下使用 flyspell-mode 时尝试加载“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/deutsch。 Ubuntu synaptic 软件包管理器为我提供了“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-mode 然后尝试执行 ispell-change-dictionary 来重复同样的错误。提供了 German8,但消息再次出现:
 Error enabling Flyspell mode:
(Error: The file "/usr/lib/aspell/german" can not be opened for reading.)

最佳答案

Elementary OS 中的相同问题相同的解决方案安装包 aspell-es 和 aspell-eu-es:

sudo apt-get install aspell-es aspell-eu-es

一切正常。

关于Emacs 和 ispell : error loading german8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15346723/

相关文章:

windows - Windows 上的 Emacs 24.3,如何升级到最新版本?

emacs - 在Emacs中,使用语义跳转到符号后如何返回到上一行位置?

emacs - 在 emacs 中自动格式化源文件

Emacs 仅将制表符停止列表设置为本地缓冲区?

emacs - transient 标记模式、预命令 Hook 和带电流缓冲区

emacs - 获取正在运行的 Emacs 计时器列表

Windows 上的 Emacs elisp 扩展文件名行为

emacs - 使用Emacs和Gdb设置断点,为什么提示总是 "Current buffer has no process"?

emacs - 在 emacs 中的最后两个缓冲区之间来回切换

emacs - 如何同步运行magit