summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 8440b9c7..bc72900d 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -765,7 +765,8 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
                     (setq-local indent-tabs-mode t)))
 
 ;;;; nix
-(setq nix-indent-function #'nix-indent-line)
+(with-eval-after-load 'nix-mode
+  (setq nix-indent-function #'nix-indent-line))
 
 (use-package nix-update
   :commands (nix-update-fetch))