To configure Emacs, one have to understand where configuration of this editor is stored. Here is the link to description:
DotEmacsDotD. This link is useful, too:
InitFile.
If you know nothing about the way the configuration is stored, you can hardly configure emacs at all. So, if you work with emacs, this information is a must.
To summarize, emacs loads files in the following order:
- site-start.el (to inhibit loading of this one, use "--no-site-file" from command line)
- ~/.emacs (or ~/.emacs.el or ~/.emacs.d/init.el) (use "-q" to prevent loading and "-u" to specify different one)
- default.el (set `inhibit-default-init' to non-`nil' to prevent loading of this one)
To gather this info use: M-: (info "(emacs) Init File")