summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2015-04-07 22:57:10 +0100
committerAlan Pearce2015-04-07 22:57:10 +0100
commit983c17466c18209282e63472ba922f93ea0acaf2 (patch)
tree97ee078383813f175ca9ad87a7a31bb83f56ea1c /tag-emacs
parente4a2085354718f94c483e6d87c5fc2261287a8ee (diff)
downloadnixfiles-983c17466c18209282e63472ba922f93ea0acaf2.tar.lz
nixfiles-983c17466c18209282e63472ba922f93ea0acaf2.tar.zst
nixfiles-983c17466c18209282e63472ba922f93ea0acaf2.zip
Emacs: Add nix-mode configuration
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index c1b2c412..fe553d49 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -774,6 +774,11 @@ mouse-1: Display Line and Column Mode Menu"))))))
 (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))