about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-nix.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-09-05 13:35:09 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-09-05 13:35:09 +0100
commit2f280fce2505b6c12cdc7b87463de8d4cacfab95 (patch)
treeb4eec28a2ed77e8b966ed7ff3385ec551bd2b22d /.emacs.d/lisp/init-nix.el
parentc9b3681363990348aa193e73969b845aff05f28f (diff)
downloaddotfiles-2f280fce2505b6c12cdc7b87463de8d4cacfab95.tar.gz
Add emacs-nixfmt
Diffstat (limited to '.emacs.d/lisp/init-nix.el')
-rw-r--r--.emacs.d/lisp/init-nix.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-nix.el b/.emacs.d/lisp/init-nix.el
index b4cf0fe..c92ef0b 100644
--- a/.emacs.d/lisp/init-nix.el
+++ b/.emacs.d/lisp/init-nix.el
@@ -5,6 +5,9 @@
 (use-package nix-mode
   :commands nix-repl-show)
 
+(use-package nixfmt
+  :hook (nix-mode . nixfmt-on-save-mode))
+
 (use-package nix-update
   :commands nix-update-fetch)