Tuesday, November 23, 2010

How to configure emacs. On "dotfiles".

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:

  1. site-start.el (to inhibit loading of this one, use "--no-site-file" from command line)
  2. ~/.emacs (or ~/.emacs.el or ~/.emacs.d/init.el) (use "-q" to prevent loading and "-u" to specify different one)
  3. 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")

No comments:

Post a Comment

My Blog List