emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/golden-ratio 8f1cd6c9fd 38/95: * golden-ratio.el: make gol


From: ELPA Syncer
Subject: [nongnu] elpa/golden-ratio 8f1cd6c9fd 38/95: * golden-ratio.el: make golden-ratio-mode global and recenter window.
Date: Thu, 7 Sep 2023 22:02:12 -0400 (EDT)

branch: elpa/golden-ratio
commit 8f1cd6c9fd74f9d811f97cbbcbb9bbf16cd4ec49
Author: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Commit: Thierry Volpiatto <thierry.volpiatto@gmail.com>

    * golden-ratio.el: make golden-ratio-mode global and recenter window.
---
 golden-ratio.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/golden-ratio.el b/golden-ratio.el
index 5782b77a34..468103ebe0 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -96,7 +96,8 @@ will not cause the window to be resized to the golden ratio."
                          always (funcall fun))))
     (let ((dims (golden-ratio--dimensions)))
       (golden-ratio--resize-window dims)
-      (scroll-left))))
+      (scroll-left)
+      (recenter))))
 
 ;; Should return nil
 (defadvice other-window
@@ -112,6 +113,7 @@ will not cause the window to be resized to the golden 
ratio."
 (define-minor-mode golden-ratio-mode
     "Enable automatic window resizing with golden ratio."
   :lighter " Golden"
+  :global t
   (if golden-ratio-mode
       (progn
         (add-hook 'window-configuration-change-hook 'golden-ratio)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]