Emacs: fix nix indentation
Alan Pearce alan@alanpearce.eu
Tue, 04 Jun 2019 15:23:08 +0200
1 files changed, 3 insertions(+), 1 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.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))