From 70c8ca30b2d35c9f25c31999d7a338c21004487c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 2 Mar 2021 19:21:15 -0500 Subject: [PATCH] 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). --- core/autoload/ui.el | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/autoload/ui.el b/core/autoload/ui.el index a133354c6..b574a6e16 100644 --- a/core/autoload/ui.el +++ b/core/autoload/ui.el @@ -122,10 +122,7 @@ See `display-line-numbers' for what these values mean." ;;;###autoload (defun doom/window-maximize-buffer (&optional arg) "Close other windows to focus on this one. - -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'." +Use `winner-undo' to undo this. Alternatively, use `doom/window-enlargen'." (interactive "P") (when (and (bound-and-true-p +popup-mode) (+popup-window-p)) @@ -134,8 +131,9 @@ window configuration and re-maximize the current window. Alternatively, use ;;;###autoload (defun doom/window-enlargen (&optional arg) - "Enlargen the current window to focus on this one. Does not close other -windows (unlike `doom/window-maximize-buffer'). Activate again to undo." + "Enlargen the current window (i.e. shrinks others) so you can focus on it. +Use `winner-undo' to undo this. Alternatively, use +`doom/window-maximize-buffer'." (interactive "P") (let* ((window (selected-window)) (dedicated-p (window-dedicated-p window))