home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit a39b061b58e290866d4e414a200aa5f76f68e9d0
parent 2c9ba48c67d8f23c461f47579b0a70d272416c45
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Tue, 31 Mar 2020 15:38:42 +0200

emacs: add nixpkgs-fmt 🎏

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mmodules/profiles/emacs.nix | 2++
Mtools/emacs/config/setup-nix.el | 5+++++
2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/profiles/emacs.nix b/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 diff --git a/tools/emacs/config/setup-nix.el b/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)