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
commit

90d3e62be2b2f923c85e1bc4492e42bad63a1467

parent

c2654b5d3cb7c7e1b3910be4318960f42c63df51

1 file 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))))