Zooming for popper windows

This commit is contained in:
2024-09-26 22:20:20 -07:00
parent dc5527e594
commit a9cb653949

View File

@@ -450,9 +450,10 @@
(defun thoom/zoom-window ()
"Delete other windows, or restore the saved window configuration if available."
(interactive)
;; Clean up if the saved config isn't valid anymore.
(if (and thoom/zoom-saved-windows
(not (window-configuration-p thoom/zoom-saved-windows)))
;; Clean up if the saved config isn't valid anymore.
(setq thoom/zoom-saved-windows nil))
(if thoom/zoom-saved-windows
@@ -460,7 +461,9 @@
(set-window-configuration thoom/zoom-saved-windows)
(setq thoom/zoom-saved-windows nil))
(setq thoom/zoom-saved-windows (current-window-configuration))
(delete-other-windows)))
(if (window-parameter (selected-window) 'window-side)
(shrink-window -100)
(delete-other-windows))))
;;; Dired
(use-package dired