flyspell不会在emacs中加载LaTeX文件 [英] flyspell doesn't load with LaTeX file in emacs

查看:156
本文介绍了flyspell不会在emacs中加载LaTeX文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据此网页,我已经编辑了我的〜/ .emacs文件并添加了以下行:

Following this web page, I have edited my ~/.emacs file and added the line:

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

但是,flyspell不能从LaTeX文件开始。为什么会这样?

However, flyspell doesn't start with LaTeX files. Why is that so?

推荐答案

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

Emacs is case-sensitive; the hook should be written as latex-mode-hook. Try this:

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

这篇关于flyspell不会在emacs中加载LaTeX文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆