lix/misc/emacs
Robert Helgesson eca29bd72d Derive Emacs nix-mode from prog-mode.
Emacs 24.1 introduced the notion of "basic major modes" and among these
is prog-mode, see section "23.2.5 Basic Major Modes" in the Emacs
manual. The prog-mode basic major mode is recommended as a base for
derived major modes that are intended for editing source code.
2014-09-17 13:35:12 +02:00
..
local.mk Build/install manual 2014-02-01 11:30:21 +01:00
nix-mode.el Derive Emacs nix-mode from prog-mode. 2014-09-17 13:35:12 +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'.