branch: elpa/golden-ratio
commit 8f1cd6c9fd74f9d811f97cbbcbb9bbf16cd4ec49
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
* 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)