summaryrefslogtreecommitdiff
path: root/.config/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.config/emacs/init.el')
-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