如何让GNU Emacs拼写检查找到用户';OSX上的个人词典?

如何让GNU Emacs拼写检查找到用户';OSX上的个人词典?,emacs,aquamacs,aspell,flyspell,ispell,Emacs,Aquamacs,Aspell,Flyspell,Ispell,我从Aquamacs切换到GNU Emacs。以前,当Aquamacs认为某个单词拼写错误时,我可以右键单击“学习拼写”。(我还可以选择忽略拼写,使其仅为该缓冲区取消单词的拼写。) 在GNU Emacs中,我将flyspell模式与ispell一起使用,并将aspell作为字典。但我注意到,我之前添加到字典中的单词(例如我的名字)被标记为拼写错误 如何让GNU Emacs找到并使用我已经建立的个人单词列表?例如,在没有从源代码构建Aquamacs的情况下,我可以这样做吗 以下是我关于设置Aspe

我从Aquamacs切换到GNU Emacs。以前,当Aquamacs认为某个单词拼写错误时,我可以右键单击“学习拼写”。(我还可以选择忽略拼写,使其仅为该缓冲区取消单词的拼写。)

在GNU Emacs中,我将flyspell模式与ispell一起使用,并将aspell作为字典。但我注意到,我之前添加到字典中的单词(例如我的名字)被标记为拼写错误


如何让GNU Emacs找到并使用我已经建立的个人单词列表?例如,在没有从源代码构建Aquamacs的情况下,我可以这样做吗

以下是我关于设置Aspell for OSX和Windows的说明——设置用户个人词典的说明在该链接的线程中给出:

Aspell中的个人单词列表是一个平面文本文件,其中包含如下内容,您可以手动插入任何单词,包括但不限于从本机OSX拼写检查器中复制列表内容~/Library/Spelling/LocalDictionary:

personal_ws-1.1 en 79 
lawlist
realleges
parte
并且,在我的
.emacs
中,我使用(相应地调整您自己的路径):

这是我用来在西班牙语和英语之间切换的函数:

(defun spell (choice)
   "Switch between language dictionaries."
   (interactive "cChoose:  (1) English | (2) Español")
    (cond ((eq choice ?1)
           (setq flyspell-default-dictionary "english")
           (setq ispell-dictionary "english")
           (setq ispell-personal-dictionary "/Users/HOME/.0.data/.0.emacs/.aspell.en.pws")
           (ispell-kill-ispell))
          ((eq choice ?2)
           (setq flyspell-default-dictionary "spanish")
           (setq ispell-dictionary "spanish")
           (setq ispell-personal-dictionary "/Users/HOME/.0.data/.0.emacs/.aspell.es.pws")
           (ispell-kill-ispell))
          (t (message "No changes have been made."))) )

对于Windows,我使用:

(setq-default ispell-program-name "c:/Program Files/Aspell/bin/aspell.exe")

以下是我关于设置Aspell for OSX和Windows的说明——该链接的线程中给出了设置用户个人词典的说明:

Aspell中的个人单词列表是一个平面文本文件,其中包含如下内容,您可以手动插入任何单词,包括但不限于从本机OSX拼写检查器中复制列表内容~/Library/Spelling/LocalDictionary:

personal_ws-1.1 en 79 
lawlist
realleges
parte
并且,在我的
.emacs
中,我使用(相应地调整您自己的路径):

这是我用来在西班牙语和英语之间切换的函数:

(defun spell (choice)
   "Switch between language dictionaries."
   (interactive "cChoose:  (1) English | (2) Español")
    (cond ((eq choice ?1)
           (setq flyspell-default-dictionary "english")
           (setq ispell-dictionary "english")
           (setq ispell-personal-dictionary "/Users/HOME/.0.data/.0.emacs/.aspell.en.pws")
           (ispell-kill-ispell))
          ((eq choice ?2)
           (setq flyspell-default-dictionary "spanish")
           (setq ispell-dictionary "spanish")
           (setq ispell-personal-dictionary "/Users/HOME/.0.data/.0.emacs/.aspell.es.pws")
           (ispell-kill-ispell))
          (t (message "No changes have been made."))) )

对于Windows,我使用:

(setq-default ispell-program-name "c:/Program Files/Aspell/bin/aspell.exe")

Aquamacs使用本机OSX拼写检查器,用户个人词典存储在:
~/Library/Spelling/LocalDictionary
。Aquamacs使用本机OSX拼写检查器,用户个人词典存储在:
~/Library/Spelling/LocalDictionary