From 2b62ed713407ad0451a1fd2f358886e37022f4fc Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 4 Jun 2019 15:23:08 +0200 Subject: Emacs: fix nix indentation --- emacs/.emacs.d/main.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs/.emacs.d/main.el') 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)) -- cgit 1.4.1