summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-23 08:59:55 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-23 08:59:55 +0200
commit95991012fd89a3a645eb5753cada8a69526d355e (patch)
tree4fbe37258cd830b5301744e8f6c8041e4b39c905
parent513745c23b4e96bf1d1c16f69367d386438efd92 (diff)
emacs: Use gsp-ts-mode
-rw-r--r--.config/emacs/init.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 66054db..9069162 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -774,6 +774,15 @@ a semicolon following a return statement."
(customize-set-variable 'c-default-style "mango")
;;; Additional Mode Support
+(eval-and-compile
+ (defun x-gsp-ts-mode-load-path ()
+ (expand-file-name "Mango0x45/gsp-ts-mode" (getenv "REPODIR"))))
+(use-package gsp-ts-mode
+ :if (and (treesit-available-p)
+ (getenv "REPODIR"))
+ :load-path (lambda () (list (x-gsp-ts-mode-load-path)))
+ :mode ("\\.gsp\\'" . gsp-ts-mode))
+
(use-package vimscript-ts-mode)
(push '("\\.go\\'" . go-ts-mode) auto-mode-alist)
(with-eval-after-load 'tempel