guix/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
nix-mode.el Add autoloads, make code more concise & idiomatic 2014-06-12 12:34:58 +02:00
README

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'.