Commit a39b061b58e2
Changed files (2)
modules
profiles
tools
emacs
config
modules/profiles/emacs.nix
@@ -41,6 +41,7 @@ in
hunspellDicts.en_US-large
hunspellDicts.en_GB-ize
hunspellDicts.fr-any
+ nixpkgs-fmt
];
home.sessionVariables = {
EDITOR = "et";
@@ -99,6 +100,7 @@ in
markdown-mode
mpdel
multiple-cursors
+ nixpkgs-fmt
no-littering
ob-async
ob-go
tools/emacs/config/setup-nix.el
@@ -10,4 +10,9 @@
:ensure nix-mode
:commands (nix-shell-unpack nix-shell-configure nix-shell-build))
+(use-package nixpkgs-fmt
+ :after nix-mode
+ :config
+ (add-hook 'nix-mode-hook 'nixpkgs-fmt-on-save-mode))
+
(provide 'setup-nix)