Emacs-进入主要模式后如何自动进入次要模式? [英] Emacs - how do I automatically enter minor modes when I enter a major mode?
本文介绍了Emacs-进入主要模式后如何自动进入次要模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
关于emacs,我有点像个新手.我知道.emacs文件,但是对做任何比基本的东西还高级的事情几乎一无所知.
I'm kind of a newb when it comes to emacs. I know about the .emacs file but have very little idea as to do anything more advanced than elementary stuff.
每当我进入乳胶模式时,我还想自动打开flyspell模式,reftex模式,自动填充模式,并将填充列设置为120.如何编辑.emacs文件为此吗?
Whenever I enter latex-mode, I'd also like to automatically turn on flyspell-mode, reftex-mode, auto-fill-mode, and also set fill-column to 120. How do I edit my .emacs file to do this?
谢谢!
推荐答案
(add-hook 'latex-mode-hook
(function (lambda ()
(flymake-mode)
(reftex-mode)
(auto-fill-mode)
(setq fill-column 120))))
例如应该工作.
这篇关于Emacs-进入主要模式后如何自动进入次要模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文