summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2024-06-08 20:44:59 +0200
committerAlan Pearce2024-06-09 18:28:22 +0200
commit90d3e62be2b2f923c85e1bc4492e42bad63a1467 (patch)
treefe96d63e40f2b50c2018aa68866df31ab8f68580 /user
parentc2654b5d3cb7c7e1b3910be4318960f42c63df51 (diff)
downloadnixfiles-90d3e62be2b2f923c85e1bc4492e42bad63a1467.tar.lz
nixfiles-90d3e62be2b2f923c85e1bc4492e42bad63a1467.tar.zst
nixfiles-90d3e62be2b2f923c85e1bc4492e42bad63a1467.zip
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
Diffstat (limited to 'user')
-rw-r--r--user/emacs/init.el4
1 files changed, 0 insertions, 4 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 39a25ebc..b477d6bf 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1225,10 +1225,6 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
                                                 (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))))