Trigger switch-buffer hooks on pop-to-buffer

This commit is contained in:
Henrik Lissner 2018-05-17 12:11:34 +02:00
parent 4fba57e954
commit 49d431ee4e
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -360,7 +360,8 @@ from the default."
(advice-add #'select-frame :around #'doom*switch-frame-hooks) (advice-add #'select-frame :around #'doom*switch-frame-hooks)
(advice-add #'select-window :around #'doom*switch-window-hooks) (advice-add #'select-window :around #'doom*switch-window-hooks)
(advice-add #'switch-to-buffer :around #'doom*switch-buffer-hooks) (advice-add #'switch-to-buffer :around #'doom*switch-buffer-hooks)
(advice-add #'display-buffer :around #'doom*switch-buffer-hooks)) (advice-add #'display-buffer :around #'doom*switch-buffer-hooks)
(advice-add #'pop-to-buffer :around #'doom*switch-buffer-hooks))
(add-hook 'doom-init-hook #'doom|init-custom-hooks) (add-hook 'doom-init-hook #'doom|init-custom-hooks)
(defun doom*load-theme-hooks (theme &rest _) (defun doom*load-theme-hooks (theme &rest _)