我正在使用GNU Emacs 24.3.50.1(x86_64-pc-linux-gnu,GTK +版本3.6.0),但是当我尝试使用package(melpa)来安装js2-refactor时,我得到了这个奇怪的错误:
package-compute-transaction: Package `emacs-24.1' is unavailable
Run Code Online (Sandbox Code Playgroud)
任何想法可能是什么?实际上,这可能来自js2-refactor:js2-mode的依赖.它给出了同样的错误.
当我在文本模式下使用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.")
Run Code Online (Sandbox Code Playgroud)
我已经检查过,没有/ 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)
Run Code Online (Sandbox Code Playgroud)
我可以通过简单地启动flyspell-mode然后尝试执行ispell-change-dictionary来重复同样的错误.提供german8,但消息再次出现:
Error enabling Flyspell mode:
(Error: The file "/usr/lib/aspell/german" can not be opened for reading.)
Run Code Online (Sandbox Code Playgroud)