all repos — nixfiles @ ba51456532c18f04a717fb4b0ea832bac9b9c009

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

emacs: fix nix-indent-line warning
Alan Pearce alan@alanpearce.eu
Sat, 05 Jun 2021 15:48:18 +0200
commit

ba51456532c18f04a717fb4b0ea832bac9b9c009

parent

b1cc8c0bf8b699c435e967873d88159aae7b2ad4

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

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -765,7 +765,8 @@ (lambda ()                     (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))