refactor: remove unneeded/magic in add-hook! calls
This commit is contained in:
parent
5311214f90
commit
1c16b84691
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue