From ba51456532c18f04a717fb4b0ea832bac9b9c009 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 5 Jun 2021 15:48:18 +0200 Subject: emacs: fix nix-indent-line warning --- user/emacs/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) -- cgit 1.4.1