[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/golden-ratio 7da7dd7d53 60/95: * golden-ratio.el (golden-r
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/golden-ratio 7da7dd7d53 60/95: * golden-ratio.el (golden-ratio-recenter): New user var, allow recentering |
Date: |
Thu, 7 Sep 2023 22:02:13 -0400 (EDT) |
branch: elpa/golden-ratio
commit 7da7dd7d53ae9b524a461f6962b81347a8f3dc2b
Author: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Commit: Thierry Volpiatto <thierry.volpiatto@gmail.com>
* golden-ratio.el (golden-ratio-recenter): New user var, allow recentering
and scrolling right as before when non--nil.
---
golden-ratio.el | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/golden-ratio.el b/golden-ratio.el
index c28b3d4f28..d6e8c6a49a 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -56,7 +56,12 @@ will not cause the window to be resized to the golden ratio."
"List of extra commands used to jump to other window."
:group 'golden-ratio
:type '(repeat symbol))
-
+
+(defcustom golden-ratio-recenter nil
+ "Recenter window vertically and scroll right when non--nil."
+ :group 'golden-ratio
+ :type 'boolean)
+
;;; Compatibility
;;
(unless (fboundp 'window-resizable-p)
@@ -95,6 +100,8 @@ will not cause the window to be resized to the golden ratio."
(golden-ratio-mode -1)
(balance-windows)
(golden-ratio--resize-window dims)
+ (when golden-ratio-recenter
+ (scroll-right) (recenter))
(golden-ratio-mode golden-p))))
;; Should return nil
- [nongnu] elpa/golden-ratio e66acd10ae 41/95: * golden-ratio.el (window-height-after-balance, window-width-after-balance): Prefix with golden-ratio., (continued)
- [nongnu] elpa/golden-ratio e66acd10ae 41/95: * golden-ratio.el (window-height-after-balance, window-width-after-balance): Prefix with golden-ratio., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 134156bbff 42/95: * golden-ratio.el: Allow running golden-ratio when switching with other commands than other-window., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 5411fb2798 45/95: Merge pull request #23 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 38948457fd 48/95: Merge remote-tracking branch 'refs/remotes/upstream/master', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 25e95f7833 49/95: Merge pull request #27 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 1df894012e 51/95: Merge pull request #28 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 12b57a3904 53/95: * golden-ratio.el: Fix Issue #29, a typo., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 86ffa26952 54/95: Merge pull request #31 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0b90ffbf02 59/95: Delay window reconfig to fix autofollow, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 73e9bd7f94 57/95: Merge remote-tracking branch 'upstream/master', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 7da7dd7d53 60/95: * golden-ratio.el (golden-ratio-recenter): New user var, allow recentering,
ELPA Syncer <=
- [nongnu] elpa/golden-ratio 892e668685 55/95: * golden-ratio.el (golden-ratio): Fix Issue #32 don't recenter and scroll-right., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio cb9ccd04bb 58/95: Also resize windows when using mouse, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 79ead1cba6 61/95: Merge pull request #35 from thierryvolpiatto/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio d4a2dd0aeb 63/95: * golden-ratio.el (golden-ratio-mode): Issue #34 remove mouse-leave-buffer-hook when mode is off., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 6851a5f720 67/95: Added golden-ratio-toggle-widescreen function, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 26f616f658 70/95: set auto-scale to nil by default., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio e2cbe68277 71/95: Use a common way to avoid recursion, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 79b1743fc1 73/95: Merge pull request #45 from vkazanov/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio b78f921f56 74/95: Allow using symbols in golden-ratio-exclude-modes., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 7215ffcc56 77/95: Don't shrink selected window, ELPA Syncer, 2023/09/07