Add docstrings to doom-inhibit-switch-*-hooks vars
This commit is contained in:
parent
6ab9cf6460
commit
f923ed4341
1 changed files with 4 additions and 2 deletions
|
@ -265,8 +265,10 @@ called. The buffer to be switched to is current when these hooks run.
|
||||||
|
|
||||||
Also see `doom-exit-buffer-hook'.")
|
Also see `doom-exit-buffer-hook'.")
|
||||||
|
|
||||||
(defvar doom-inhibit-switch-buffer-hooks nil)
|
(defvar doom-inhibit-switch-buffer-hooks nil
|
||||||
(defvar doom-inhibit-switch-window-hooks nil)
|
"Letvar for inhibiting `doom-enter-buffer-hook' and `doom-exit-buffer-hook'.")
|
||||||
|
(defvar doom-inhibit-switch-window-hooks nil
|
||||||
|
"Letvar for inhibiting `doom-enter-window-hook' and `doom-exit-window-hook'.")
|
||||||
|
|
||||||
(defun doom*switch-window-hooks (orig-fn window &optional norecord)
|
(defun doom*switch-window-hooks (orig-fn window &optional norecord)
|
||||||
(if (or doom-inhibit-switch-window-hooks
|
(if (or doom-inhibit-switch-window-hooks
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue