all repos — nixfiles @ 983c17466c18209282e63472ba922f93ea0acaf2

System and user configuration, managed by nix and home-manager

Emacs: Add nix-mode configuration
Alan Pearce alan@alanpearce.co.uk
Tue, 07 Apr 2015 22:57:10 +0100
commit

983c17466c18209282e63472ba922f93ea0acaf2

parent

e4a2085354718f94c483e6d87c5fc2261287a8ee

1 files changed, 5 insertions(+), 0 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -774,6 +774,11 @@ (req-package haskell-mode
   :mode (("\\.hs\\'" . haskell-mode)))
 
+(req-package nix-mode
+  :mode (("\\.nix\\'" . nix-mode))
+  :config (progn
+            (setq-local indent-tabs-mode nil)))
+
 (define-derived-mode xmonad-mode haskell-mode "XM")
 (add-to-list 'auto-mode-alist '("xmobarrc\\'" . xmonad-mode))
 (add-to-list 'auto-mode-alist '("xmonad.hs\\'" . xmonad-mode))