我使用brew作为Emacs和ispell的包管理器。我都装好了。做一个快速的google,我不知道如何告诉Emacs在那里ispell和加载适当的字典。
现在,当我做M-x ispell-check-version时,Emacs轻描淡写地回答:Searching for program: No such file or directory。
Emacs以使用ispell?发布于 2012-05-24 01:57:50
您要寻找的变量是ispell-program-name。把这个放在你的.emacs中:
(setq ispell-program-name "/path/to/ispell")或者使用M-x set-variable等。
参考文献:
ispell.el (未自定义ispell-Program(或(locate“A拼写”exec-path exec‘file-可执行文件-p))(找到-文件"ispell“exec-path exec-后缀的文件-可执行文件-p)”“ispell字和\艾斯佩尔区调用的程序”:类型'string :group’ispell‘file-p。当您找不到Emacs函数时,请记住C-h f (或变量:C-h v)。在ispell提示符下输入Describe function可以告诉您ispell is an interactive compiled Lisp function in 'ispell.el'.,然后您通常可以在那里找到您要查找的内容。
发布于 2013-07-26 11:10:24
帮助我解决这个问题的是通过brew安装ispell,而不是用绝对路径编辑我的.emacs (我不愿意这样做,因为我在不同的操作系统之间共享文件)。
brew install ispell --with-lang-en正如在这个答案中解释的那样(以及我的评论)。
发布于 2015-12-28 11:27:49
这是一个环境变量问题。exec-path-from-shell包为我解决了这个问题。
在评估(exec-path-from-shell-initialize)后,ispell开始工作。
https://unix.stackexchange.com/questions/38916
复制相似问题