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:
parent
1dc43f9770
commit
81ffed520b
6 changed files with 29 additions and 25 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue