summaryrefslogtreecommitdiff
path: root/.config/emacs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-09 23:56:41 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-09 23:56:41 +0200
commit9151c66f15da05ae5915fc68f9da5d76be495685 (patch)
tree18e40cf365bc300ffc95e399815fb72c7f28f273 /.config/emacs
parent1c2d152a7711d76307219380a7168f9dc52dc8ff (diff)
emacs: Simplify code
Diffstat (limited to '.config/emacs')
-rw-r--r--.config/emacs/init.el9
1 files changed, 2 insertions, 7 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index f836a72..ea8f224 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -371,15 +371,10 @@ indentation-width.")
(setq-local tab-width width
evil-shift-width width)
(dolist (var extra)
- (set var width))))
- (mode-hook (intern (concat (symbol-name mode) "-hook")))
- (mode-ts (intern (concat
- (string-remove-suffix
- "-mode" (symbol-name mode))
- "-ts-mode"))))
+ (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 hook callback 95)))))
(x-set-indentation-settings)