summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-06-04 15:23:08 +0200
committerAlan Pearce2019-06-04 15:23:08 +0200
commit2b62ed713407ad0451a1fd2f358886e37022f4fc (patch)
tree16364ea4f9b299e223634d825ba37958c088d79c
parent3f3b5f6787054858ecf5e231cd155028b4d1d60c (diff)
downloadnixfiles-2b62ed713407ad0451a1fd2f358886e37022f4fc.tar.lz
nixfiles-2b62ed713407ad0451a1fd2f358886e37022f4fc.tar.zst
nixfiles-2b62ed713407ad0451a1fd2f358886e37022f4fc.zip
Emacs: fix nix indentation
-rw-r--r--emacs/.emacs.d/main.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index fa04be07..bbfa3164 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -1327,7 +1327,9 @@ With two prefix arguments, write out the day and month name."
             (add-hook 'docker-compose-mode-hook #'company-mode-on)))
 
 (use-package nix-mode
-  :mode (("\\.nix\\'" . nix-mode)))
+  :mode (("\\.nix\\'" . nix-mode))
+  :config (progn
+            (setq nix-indent-function #'nix-indent-line)))
 
 (define-derived-mode xmonad-mode haskell-mode "XM")
 (add-to-list 'auto-mode-alist '("xmobarrc\\'" . xmonad-mode))