summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2021-06-05 15:48:18 +0200
committerAlan Pearce2021-06-05 15:48:18 +0200
commitba51456532c18f04a717fb4b0ea832bac9b9c009 (patch)
treeb24408060d1773c66cc09902e478b0202dea6956 /user/emacs
parentb1cc8c0bf8b699c435e967873d88159aae7b2ad4 (diff)
downloadnixfiles-ba51456532c18f04a717fb4b0ea832bac9b9c009.tar.lz
nixfiles-ba51456532c18f04a717fb4b0ea832bac9b9c009.tar.zst
nixfiles-ba51456532c18f04a717fb4b0ea832bac9b9c009.zip
emacs: fix nix-indent-line warning
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))