diff options
Diffstat (limited to 'user')
-rw-r--r-- | user/emacs/init.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index 5620010e..a69fe8d1 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -1221,6 +1221,7 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve (setq apheleia-formatters (append apheleia-formatters '((nixpkgs-fmt "nixpkgs-fmt") (golines "golines") + (taplo "taplo" "format" "-") (prettier-gotmpl "prettier" "--stdin-filepath" filepath "--parser=go-template" (apheleia-formatters-indent "--use-tabs" "--tab-width"))))) @@ -1229,7 +1230,8 @@ _C-k_: prev _u_pper _=_: upper/lower _s_mart resolve (alist-get 'web-mode apheleia-mode-alist) '(prettier-gotmpl)) (setq apheleia-mode-alist (append apheleia-mode-alist '((nix-ts-mode . nixpkgs-fmt) - (nix-mode . nixpkgs-fmt)))) + (nix-mode . nixpkgs-fmt) + (toml-ts-mode . taplo)))) (add-hook 'apheleia-mode-hook #'turn-off-format-all-mode)) :init (progn (apheleia-global-mode +1))) |