我想cc-mode.el用另一个文件覆盖默认的 Emacs。在我的.emacs中,我有以下行:
(add-to-list 'load-path "/usr/home/smooth/emacs" t)
这可以正常加载本地 Emacs 配置文件。例如
(require 'go-mode-autoloads)
go-mode.el可以从上述目录加载。
我尝试将所需的cc-mode.el文件放入上述目录,希望它会覆盖默认的 Emacs c-mode。但是,它没有加载cc-mode.el我放入的文件/usr/home/smooth/emacs。相反,它继续使用默认的。
如何让 Emacs 使用我的cc-mode.el文件而不是默认文件?我已经用 Google 进行了广泛的搜索并尝试了 Emacs Wiki,但我找不到正确的页面。
或者,我如何将 Emacs 设置为使用另一个文件而c-mode不是系统默认值?我不介意将当前重命名cc-mode.el为另一个名称。
我的 Emacs 版本是 25.2。