Update docstrings for doom/window-{enlargen,maximize-buffer}
As of 56e9d273e
, these commands no longer toggle because the toggle was
brittle could be unpredictable at times. Use winner-undo instead (on
`C-w r` or `SPC w r` by default).
This commit is contained in:
parent
468f308114
commit
70c8ca30b2
1 changed files with 4 additions and 6 deletions
|
@ -122,10 +122,7 @@ See `display-line-numbers' for what these values mean."
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/window-maximize-buffer (&optional arg)
|
(defun doom/window-maximize-buffer (&optional arg)
|
||||||
"Close other windows to focus on this one.
|
"Close other windows to focus on this one.
|
||||||
|
Use `winner-undo' to undo this. Alternatively, use `doom/window-enlargen'."
|
||||||
Activate again to undo this. If prefix ARG is non-nil, don't restore the last
|
|
||||||
window configuration and re-maximize the current window. Alternatively, use
|
|
||||||
`doom/window-enlargen'."
|
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(when (and (bound-and-true-p +popup-mode)
|
(when (and (bound-and-true-p +popup-mode)
|
||||||
(+popup-window-p))
|
(+popup-window-p))
|
||||||
|
@ -134,8 +131,9 @@ window configuration and re-maximize the current window. Alternatively, use
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun doom/window-enlargen (&optional arg)
|
(defun doom/window-enlargen (&optional arg)
|
||||||
"Enlargen the current window to focus on this one. Does not close other
|
"Enlargen the current window (i.e. shrinks others) so you can focus on it.
|
||||||
windows (unlike `doom/window-maximize-buffer'). Activate again to undo."
|
Use `winner-undo' to undo this. Alternatively, use
|
||||||
|
`doom/window-maximize-buffer'."
|
||||||
(interactive "P")
|
(interactive "P")
|
||||||
(let* ((window (selected-window))
|
(let* ((window (selected-window))
|
||||||
(dedicated-p (window-dedicated-p window))
|
(dedicated-p (window-dedicated-p window))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue