all repos — nixfiles @ 90d3e62be2b2f923c85e1bc4492e42bad63a1467

System and user configuration, managed by nix and home-manager

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
commit

90d3e62be2b2f923c85e1bc4492e42bad63a1467

parent

c2654b5d3cb7c7e1b3910be4318960f42c63df51

1 files changed, 0 insertions(+), 4 deletions(-)

jump to
M user/emacs/init.eluser/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))))