all repos — nixfiles @ 2b62ed713407ad0451a1fd2f358886e37022f4fc

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

Emacs: fix nix indentation
Alan Pearce alan@alanpearce.eu
Tue, 04 Jun 2019 15:23:08 +0200
commit

2b62ed713407ad0451a1fd2f358886e37022f4fc

parent

3f3b5f6787054858ecf5e231cd155028b4d1d60c

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -1327,7 +1327,9 @@ :config (progn             (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))