Emacs - how do I automatically enter minor modes when I enter a major mode?

三世轮回 提交于 2019-12-05 06:12:11
(add-hook 'latex-mode-hook
    (function (lambda ()
       (flymake-mode)
       (reftex-mode)
       (auto-fill-mode)
       (setq fill-column 120))))

for example should work.

You can set a so-called hook to a major mode. Have a look at this page of the manual for some examples.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!