From b38faebf0f01574bea670e40e0e53693b4e56b47 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Aug 2023 00:30:44 +0200 Subject: emacs: Don’t check if hook is bound MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I would like to do this, but it breaks things since the hooks may exist in the future but just not yet. --- .config/emacs/config.org | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.config/emacs/config.org') 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) -- cgit v1.2.3