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每当我使用自定义工具或键入默认禁用的命令时,Emacs 都会编辑我的文件。对我的配置进行任何自动编辑都会让我感到紧张。如何阻止 Emacs 编辑我的.emacs. 文件?
.emacs
首先要做的是阻止那个愚蠢的“禁用命令”功能做任何事情。如果您非常关心您的.emacs文件,那么您当然不需要novice.el对您发号施令。
novice.el
(setq disabled-command-function nil)
可以使用以下命令使自定义工具将所有自定义内容填充到单独的文件中。
(setq custom-file "~/.emacs-custom.el") (load custom-file 'noerror)