From 1c16b84691adc9d8bff31a25eb28ae070f5913ce Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 29 Aug 2024 01:40:03 -0400 Subject: [PATCH] refactor: remove unneeded/magic in add-hook! calls --- modules/app/calendar/config.el | 2 +- modules/email/wanderlust/config.el | 2 +- modules/tools/lsp/+lsp.el | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/app/calendar/config.el b/modules/app/calendar/config.el index 75720240f..71e9e0232 100644 --- a/modules/app/calendar/config.el +++ b/modules/app/calendar/config.el @@ -27,7 +27,7 @@ (define-key cfw:calendar-mode-map "q" #'+calendar/quit) (when (modulep! :editor evil +everywhere) (set-evil-initial-state! '(cfw:calendar-mode cfw:details-mode) 'motion) - (add-hook! (cfw:calendar-mode cfw:details-mode) #'evil-normalize-keymaps) + (add-hook! '(cfw:calendar-mode-hook cfw:details-mode-hook) #'evil-normalize-keymaps) (map! (:map cfw:calendar-mode-map :m "q" #'+calendar/quit :m "SPC" #'cfw:show-details-command diff --git a/modules/email/wanderlust/config.el b/modules/email/wanderlust/config.el index 22350066e..436a7126f 100644 --- a/modules/email/wanderlust/config.el +++ b/modules/email/wanderlust/config.el @@ -108,7 +108,7 @@ ;; In addition, `wl-folder-mode' won't start in `evil-emacs-state' through ;; `evil-emacs-state-modes', and `wl-summary-mode' won't start in ;; `evil-emacs-state' through `wl-summary-mode-hook'. - (add-hook! 'wl-folder-mode-hook #'evil-emacs-state) + (add-hook 'wl-folder-mode-hook #'evil-emacs-state) (pushnew! evil-emacs-state-modes 'wl-summary-mode)) (add-hook 'mime-edit-mode-hook #'auto-fill-mode)) diff --git a/modules/tools/lsp/+lsp.el b/modules/tools/lsp/+lsp.el index e3f3988a2..ae8ef434a 100644 --- a/modules/tools/lsp/+lsp.el +++ b/modules/tools/lsp/+lsp.el @@ -97,7 +97,7 @@ Can be a list of backends; accepts any value `company-backends' accepts.") (setq-local flycheck-checker old-checker)) (apply fn args))) - (add-hook! 'lsp-mode-hook #'+lsp-optimization-mode) + (add-hook 'lsp-mode-hook #'+lsp-optimization-mode) (when (modulep! :completion company) (add-hook! 'lsp-completion-mode-hook