From 95991012fd89a3a645eb5753cada8a69526d355e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 23 Sep 2024 08:59:55 +0200 Subject: emacs: Use gsp-ts-mode --- .config/emacs/init.el | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.config') 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 -- cgit v1.2.3