Rename doom-before-switch-*-hook hooks

+ doom-before-switch-buffer-hook => doom-exit-buffer-hook
+ doom-before-switch-window-hook => doom-exit-window-hook
+ doom-after-switch-buffer-hook => doom-enter-buffer-hook
+ doom-after-switch-window-hook => doom-enter-window-hook

Shorter, easier-to-type names that better describe their intended
purpose.

The old names are still usable, but deprecated.
This commit is contained in:
Henrik Lissner 2018-07-02 23:29:53 +02:00
parent 1dc43f9770
commit 81ffed520b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
6 changed files with 29 additions and 25 deletions

View file

@ -140,7 +140,7 @@ fundamental-mode) for performance sake."
;; Auto-close delimiters and blocks as you type
(def-package! smartparens
:after-call (doom-before-switch-buffer-hook after-find-file)
:after-call (doom-exit-buffer-hook after-find-file)
:commands (sp-pair sp-local-pair sp-with-modes)
:config
(require 'smartparens-config)
@ -177,7 +177,7 @@ fundamental-mode) for performance sake."
;; Branching undo
(def-package! undo-tree
:after-call (doom-before-switch-buffer-hook after-find-file)
:after-call (doom-exit-buffer-hook after-find-file)
:config
;; persistent undo history is known to cause undo history corruption, which
;; can be very destructive! So disable it!