Add docstrings to doom-inhibit-switch-*-hooks vars

This commit is contained in:
Henrik Lissner 2018-08-17 04:34:43 +02:00
parent 6ab9cf6460
commit f923ed4341
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -265,8 +265,10 @@ called. The buffer to be switched to is current when these hooks run.
Also see `doom-exit-buffer-hook'.")
(defvar doom-inhibit-switch-buffer-hooks nil)
(defvar doom-inhibit-switch-window-hooks nil)
(defvar doom-inhibit-switch-buffer-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)
(if (or doom-inhibit-switch-window-hooks