From 2f280fce2505b6c12cdc7b87463de8d4cacfab95 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Thu, 5 Sep 2024 13:35:09 +0100 Subject: Add emacs-nixfmt --- .emacs.d/lisp/init-nix.el | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit 1.4.1-2-gfad0