我收到此錯誤信息,而在文本模式下使用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