Emacs: use default formatters for go-mode/web-mode use dir-local variables to override where necessary instead; golines isn't used in every go project and web-mode handles a variety of template formats, not just go html/template files
Alan Pearce alan@alanpearce.eu
Sat, 08 Jun 2024 20:44:59 +0200
1 files changed, 0 insertions(+), 4 deletions(-)
jump to
M user/emacs/init.el → user/emacs/init.el
@@ -1225,10 +1225,6 @@ (taplo "taplo" "format" "-") (prettier-gotmpl "prettier" "--stdin-filepath" filepath "--parser=go-template" (apheleia-formatters-indent "--use-tabs" "--tab-width"))))) - (setf (alist-get 'go-ts-mode apheleia-mode-alist) - '(golines) - (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) (toml-ts-mode . taplo))))