【问题标题】:flyspell doesn't load with LaTeX file in emacsflyspell 不会在 emacs 中加载 LaTeX 文件
【发布时间】:2011-11-30 19:59:47
【问题描述】:

this web page 之后,我编辑了我的 ~/.emacs 文件并添加了以下行:

(add-hook 'LaTeX-mode-hook 'flyspell-mode)

但是,flyspell 不以 LaTeX 文件开头。为什么会这样?

【问题讨论】:

  • 请接受您许多问题的答案。您在下方说“谢谢”,但尚未投票或接受答案。

标签: emacs latex flyspell


【解决方案1】:

我无法完成这项工作:

(add-hook 'LaTeX-mode-hook 'flyspell-mode)   or
(add-hook 'latex-mode-hook 'flyspell-mode)

但后来我发现了这个:

(add-hook 'LaTeX-mode-hook 'turn-on-flyspell)

-它正在工作。

【讨论】:

  • 这也解决了我的问题;似乎'latex-mode-hook 适用于某些人,而'LaTeX-mode-hook 适用于其他人。我错误地将'latex-mode-hook'turn-on-flyspell 一起使用
【解决方案2】:

Emacs 区分大小写;钩子应该写成latex-mode-hook。试试这个:

(add-hook 'latex-mode-hook 'flyspell-mode)

【讨论】:

  • 所以 flyspell.el 网页与 reftex 相关,谢谢
猜你喜欢
  • 1970-01-01
  • 2013-02-16
  • 2013-06-12
  • 1970-01-01
  • 2012-08-26
  • 2011-12-28
  • 1970-01-01
  • 2014-04-02
  • 1970-01-01
相关资源
最近更新 更多