Improve real-buffer function docstrings
This commit is contained in:
parent
03a03853e4
commit
7b2bbb973a
1 changed files with 16 additions and 5 deletions
|
@ -8,7 +8,9 @@
|
||||||
tested.
|
tested.
|
||||||
|
|
||||||
Should any of its function returns non-nil, the rest of the functions are
|
Should any of its function returns non-nil, the rest of the functions are
|
||||||
ignored and the buffer is considered real.")
|
ignored and the buffer is considered real.
|
||||||
|
|
||||||
|
See `doom-real-buffer-p' for more information.")
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defvar doom-unreal-buffer-functions
|
(defvar doom-unreal-buffer-functions
|
||||||
|
@ -18,11 +20,14 @@ unlike `doom-real-buffer-functions'. They are passed one argument: the buffer to
|
||||||
be tested.
|
be tested.
|
||||||
|
|
||||||
Should any of these functions return non-nil, the rest of the functions are
|
Should any of these functions return non-nil, the rest of the functions are
|
||||||
ignored and the buffer is considered unreal.")
|
ignored and the buffer is considered unreal.
|
||||||
|
|
||||||
|
See `doom-real-buffer-p' for more information.")
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defvar-local doom-real-buffer-p nil
|
(defvar-local doom-real-buffer-p nil
|
||||||
"If non-nil, this buffer should be considered real no matter what.")
|
"If non-nil, this buffer should be considered real no matter what. See
|
||||||
|
`doom-real-buffer-p' for more information.")
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defvar doom-fallback-buffer "*scratch*"
|
(defvar doom-fallback-buffer "*scratch*"
|
||||||
|
@ -84,8 +89,14 @@ If no project is active, return all buffers."
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom-real-buffer-p (&optional buffer-or-name)
|
(defun doom-real-buffer-p (&optional buffer-or-name)
|
||||||
"Returns t if BUFFER-OR-NAME is a 'real' buffer. The criteria for a real
|
"Returns t if BUFFER-OR-NAME is a 'real' buffer.
|
||||||
buffer is:
|
|
||||||
|
A real buffer is a useful buffer; a first class citizen in Doom. Real ones
|
||||||
|
should get special treatment, because we will be spending most of our time in
|
||||||
|
them. Unreal ones should be low-profile and easy to cast aside, so we can focus
|
||||||
|
on real ones.
|
||||||
|
|
||||||
|
The exact criteria for a real buffer is:
|
||||||
|
|
||||||
1. A non-nil value for the buffer-local value of the `doom-real-buffer-p'
|
1. A non-nil value for the buffer-local value of the `doom-real-buffer-p'
|
||||||
variable OR
|
variable OR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue