I would like to override the default Emacs cc-mode.el
with another file. In my .emacs
, I have the following line:
(add-to-list 'load-path "/usr/home/smooth/emacs" t)
This works correctly to load local Emacs configuration files. For example
(require 'go-mode-autoloads)
works to load go-mode.el
from the above directory.
I tried placing the required cc-mode.el
file into the above directory in the hope that it would override the default Emacs c-mode
. However, it did not load the cc-mode.el
file which I had put in /usr/home/smooth/emacs
. Instead it continued to use the default one.
How can I make Emacs use my cc-mode.el
file and not the default one? I have already extensively searched with Google and tried the Emacs Wiki, but I couldn't find the correct page.
Alternatively, how I can I set Emacs to use another file for c-mode
than the system default? I don't mind renaming the current cc-mode.el
to another name.
My version of Emacs is 25.2.