summaryrefslogtreecommitdiff
path: root/.config/emacs/config.org
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-08-16 00:30:44 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-08-16 00:30:44 +0200
commitb38faebf0f01574bea670e40e0e53693b4e56b47 (patch)
tree38e34884c47b3f7f7b4e780e9bebf16604cfe916 /.config/emacs/config.org
parenta349fc0320f90fdfb87744113c5a107f486004b8 (diff)
emacs: Don’t check if hook is bound
I would like to do this, but it breaks things since the hooks may exist in the future but just not yet.
Diffstat (limited to '.config/emacs/config.org')
-rw-r--r--.config/emacs/config.org4
1 files changed, 1 insertions, 3 deletions
diff --git a/.config/emacs/config.org b/.config/emacs/config.org
index 0d38654..63385d3 100644
--- a/.config/emacs/config.org
+++ b/.config/emacs/config.org
@@ -610,9 +610,7 @@ with a custom function that reads a list of mode-specific indentation settings.
evil-shift-width width)
(mm-for-each extra (set x width)))))
(add-hook (mm-mode-to-hook mode) callback 95)
- (let ((ts-hook (mm-mode-to-hook (mm-mode-to-ts-mode mode))))
- (when (boundp ts-hook)
- (add-hook ts-hook callback 95))))))
+ (add-hook (mm-mode-to-hook (mm-mode-to-ts-mode mode)) callback 95))))
(mm-set-indentation-settings)