mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Add doom-{after,before}-switch-window-hook hooks
This commit is contained in:
@ -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
|
||||
;;
|
||||
|
Reference in New Issue
Block a user