我正在使用ispell还是aspell,本地词典保存在哪里?

5

在 Emacs 中进行拼写检查时,我通常使用 M-xispell 调用拼写检查器。据我所知,有些人已将他们的 Emacs 配置为调用 aspell 而不是 ispell(或 hunspell)。

如何知道我正在调用 ispell 还是 aspell?

我查看了我的.emacs文件(在我的主目录中),并没有发现任何引用它们的内容。

此外,(假设我正在使用 ispell),插入词语到“私有词典”中的文件保存在哪里?我想备份该文件(和/或将其传输到另一台机器)。


1
@lawlist - 你在评论中发布的线程链接已经为我解答了这个问题。谢谢! - Madeleine P. Vincent
1个回答

1

ispell-program-name的值告诉您正在使用什么。

M-:ispell-program-name

ispell.el说明:

(defconst ispell-pdict-keyword "Local IspellPersDict: "
  "The keyword for defining buffer local dictionaries.
Keyword must be followed by the filename of a personal dictionary.
The last occurring definition in the buffer will be used.")
....
;; Change IspellPersDict to IspellPersDict: to enable the following line.
;; Local IspellPersDict ~/.ispell_lisp

我好像没有ispell-program-name函数。使用的是Emacs 23.3版本。 - Madeleine P. Vincent
1
ispell 包可能第一次没有被加载……至少在我第一次尝试查找该变量时是这样的,没有结果显示。我打开了 ispell.el.gz,找到了 ispell-program-name,按下 C-h v 并搜索该变量,这一次它出现了。 - nymo
说句实话,我能够使用函数 ispell-check-version - Madeleine P. Vincent

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接