lix/misc/emacs
Steve Purcell 61c464f252 Add autoloads, make code more concise & idiomatic
- Use define-derived-mode to declare nix-mode
- Use autoloads to ensure nix-mode is usable (and enabled) without needing `require`
- Use set + make-local-variable instead of longer 2-step equivalent
2014-06-12 12:34:58 +02:00
..
local.mk Build/install manual 2014-02-01 11:30:21 +01:00
nix-mode.el Add autoloads, make code more concise & idiomatic 2014-06-12 12:34:58 +02:00
README * README for the Emacs mode (written a while ago, but forgot to commit). 2004-06-20 19:08:59 +00:00

The Nix Emacs mode supports syntax highlighting, somewhat sensible
indenting, and refilling of comments.

To enable Nix mode in Emacs, add something like this to your ~/.emacs
file:

  (load "/nix/share/emacs/site-lisp/nix-mode.el")

This automatically causes Nix mode to be activated for all files with
extension `.nix'.