Add doom-{after,before}-switch-window-hook hooks
This commit is contained in:
parent
00a9a08afb
commit
fbb9947c7e
1 changed files with 15 additions and 0 deletions
|
@ -280,6 +280,21 @@ DEFAULT is non-nil, set the default mode-line for all buffers."
|
|||
(add-hook 'server-visit-hook 'server-remove-kill-buffer-hook)
|
||||
|
||||
|
||||
;;
|
||||
;; Custom hooks
|
||||
;;
|
||||
|
||||
(defun doom*after-switch-window-hooks (&rest _)
|
||||
(run-hooks 'doom-after-switch-window-hook))
|
||||
(defun doom*before-switch-window-hooks (&rest _)
|
||||
(run-hooks 'doom-before-switch-window-hook))
|
||||
|
||||
(advice-add #'select-frame :before #'doom*before-switch-window-hooks)
|
||||
(advice-add #'select-frame :after #'doom*after-switch-window-hooks)
|
||||
(advice-add #'select-window :before #'doom*before-switch-window-hooks)
|
||||
(advice-add #'select-window :after #'doom*after-switch-window-hooks)
|
||||
|
||||
|
||||
;;
|
||||
;; Line numbers
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue