Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行 emacs/org-mode 时,我有以下代码将自动填充模式作为次要模式。
(defun my-org-mode-hook() (progn (turn-on-flyspell) (auto-fill-mode))) (add-hook 'org-mode-hook 'my-org-mode-hook)
但是,当我打开 org 文件时,我只看到 (Org Fly Spc):flyspell 模式已打开,但没有自动填充模式未打开。
这有什么问题?
不带参数的自动填充模式切换模式。尝试使用
(auto-fill-mode 1)
而不是在你的钩子里?