aboutsummaryrefslogtreecommitdiff
path: root/dot.emacs.d/init.el
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2026-07-27 19:46:08 +0200
committerThomas Schneider <qsx@chaotikum.eu>2026-07-27 20:02:53 +0200
commit958ff3f06142f3a0e66f2959d814f880c477c691 (patch)
tree71aa53dd17d828fe4af5f2e5acc61b8d6172944d /dot.emacs.d/init.el
parent23df3f90582cebfdbd1355fadd13556fb89909dd (diff)
Emacs: Some more and some fewer languages via tree-sitter
Diffstat (limited to 'dot.emacs.d/init.el')
-rw-r--r--dot.emacs.d/init.el20
1 files changed, 19 insertions, 1 deletions
diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el
index d08503e..049095d 100644
--- a/dot.emacs.d/init.el
+++ b/dot.emacs.d/init.el
@@ -148,10 +148,28 @@
:custom
(treesit-auto-install 'prompt)
:config
- (setq treesit-auto-langs (seq-difference treesit-auto-langs '(go gomod yaml)))
+ (setq treesit-auto-langs
+ (seq-difference treesit-auto-langs
+ '(c cpp go gomod yaml php jsdoc phpdoc)))
(treesit-auto-add-to-auto-mode-alist 'all)
(global-treesit-auto-mode))
+(setq
+ treesit-language-source-alist
+ (append treesit-language-source-alist
+ '((erlang "https://github.com/WhatsApp/tree-sitter-erlang")
+ (astro "https://github.com/virchau13/tree-sitter-astro")
+ (css "https://github.com/tree-sitter/tree-sitter-css")
+ (tsx "https://github.com/tree-sitter/tree-sitter-typescript" "master" "tsx/src"))))
+
+(use-package astro-ts-mode
+ :mode "\\.astro\\'"
+ :config (keymap-unset astro-ts-mode-map "M-o"))
+
+(use-package erlang-ts
+ :mode ("\\.erl\\'" . erlang-ts-mode)
+ :config (add-to-list 'lsp-language-id-configuration '(erlang-ts-mode . "erlang")))
+
(use-package editorconfig
:defer nil
:config