summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-23 03:44:36 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-23 03:44:36 +0200
commit9dffe32c72d6da58d9e7aa2bb8530bf9ff2eb8f4 (patch)
treee0bf99adc062b8d277f32f558a8d84396896c3a6 /.config/emacs
parenta8cc5024961ef4fbb79f5fb90fd8fd8acb5cd1ef (diff)
emacs: Don’t create -ts-ts-mode hooks
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/init.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 1fc33f8..e9d52e0 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -360,9 +360,9 @@ indentation-width.")
evil-shift-width width)
(dolist (var extra)
(set var width)))))
- (dolist (hook (list (x-mode-to-hook mode)
- (x-mode-to-hook (x-mode-to-ts-mode mode))))
- (add-hook hook callback 95)))))
+ (add-hook (x-mode-to-hook mode) callback 95)
+ (unless (string-prefix-p "-ts-mode" (symbol-name mode))
+ (add-hook (x-mode-to-hook (x-mode-to-ts-mode mode)) callback 95)))))
(defun x-set-tabsize ()
"Set the tabsize for the current buffer. If the current buffers major