diff options
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 670334f3..ad8e6346 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -1103,10 +1103,11 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve :config (progn (setf (alist-get 'shfmt apheleia-formatters) '("shfmt")) - (setf (alist-get 'nixfmt apheleia-formatters) - '("nixpkgs-fmt")) + (setq apheleia-formatters (append apheleia-formatters '((nixpkgs-fmt "nixpkgs-fmt")))) (setf (alist-get 'go-ts-mode apheleia-mode-alist) '(goimports)) + (setq apheleia-mode-alist (append apheleia-mode-alist '((nix-ts-mode . nixpkgs-fmt) + (nix-mode . nixpkgs-fmt)))) (add-hook 'apheleia-mode-hook #'turn-off-format-all-mode)) :init (progn (apheleia-global-mode +1))) |