[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/golden-ratio 7504957a7a 23/95: Merge pull request #19 from
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/golden-ratio 7504957a7a 23/95: Merge pull request #19 from deftsp/inhabit-func |
Date: |
Thu, 7 Sep 2023 22:02:10 -0400 (EDT) |
branch: elpa/golden-ratio
commit 7504957a7a9d37ec8c5be380c206b1e64731e928
Merge: 9843ca2239 ef6f8ce72d
Author: Roman Gonzalez <romanandreg@gmail.com>
Commit: Roman Gonzalez <romanandreg@gmail.com>
Merge pull request #19 from deftsp/inhabit-func
Support exclusions based on inhabit function
---
golden-ratio.el | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/golden-ratio.el b/golden-ratio.el
index afcffaab8d..deb99053e6 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -40,6 +40,13 @@ window to be resized to the golden ratio."
:type '(repeat string)
:group 'golden-ratio)
+(defcustom golden-ratio-inhibit-functions nil
+ "List of functions to call with no arguments. Switching to a
+buffer, if any of these functions returns non-nil will not cause
+the window to be resized to the golden ratio."
+ :group 'golden-ratio
+ :type 'hook)
+
(defun -golden-ratio-dimensions ()
(let* ((main-rows (floor (/ (frame-height) -golden-ratio-value)))
(main-columns (floor (/ (frame-width) -golden-ratio-value))))
@@ -68,10 +75,12 @@ window to be resized to the golden ratio."
(interactive)
(if (and (not (window-minibuffer-p))
(not (one-window-p))
- (not (member (symbol-name major-mode)
- golden-ratio-exclude-modes))
- (not (member (buffer-name)
- golden-ratio-exclude-buffer-names)))
+ (not (member (symbol-name major-mode)
+ golden-ratio-exclude-modes))
+ (not (member (buffer-name)
+ golden-ratio-exclude-buffer-names))
+ (not (run-hook-with-args-until-success
+ 'golden-ratio-inhibit-functions)))
(progn
(balance-windows)
(-golden-ratio-resize-window (-golden-ratio-dimensions)
- [nongnu] elpa/golden-ratio 351fe5f8f1 12/95: Removing error messages on minibuffer and full height/width windows, (continued)
- [nongnu] elpa/golden-ratio 351fe5f8f1 12/95: Removing error messages on minibuffer and full height/width windows, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio f5b3602b5d 17/95: Merge branch '0.0.4', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio bb4afe59b2 08/95: Merge pull request #3 from dsevilla/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 65db8b88aa 06/95: Added a constant to hold the golden ratio value., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0517fc134a 11/95: Replacing `window-absolute-pixel-edges` in favor of `window-pixel-edges`, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio cb8ff0bdb0 13/95: Bumping to version 0.0.3, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio ed24985e10 14/95: Fix MELPA footer., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0508acbd20 15/95: Merge pull request #12 from zane/melpa, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 6af760274b 16/95: Fixing several bugs at once, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio ff8ade7d35 19/95: Merge branch 'release/with-exemption-support', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 7504957a7a 23/95: Merge pull request #19 from deftsp/inhabit-func,
ELPA Syncer <=
- [nongnu] elpa/golden-ratio 2d1553431c 25/95: Merge pull request #22 from Fuco1/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio c028a68645 26/95: Initial cleanup., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio d7c433c655 27/95: (golden-ratio--resize-window): Fix, it is not a cond but when twice., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio b2eb54a74c 28/95: Remove unuseful advices and create new minor mode., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 239eb4d9cb 29/95: (golden-ratio): scroll left., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio d877ceec2c 30/95: Remove commented line., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio f547dee6ad 31/95: (golden-ratio-mode): fix lighter., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0d7e18325d 33/95: Merge pull request #1 from thierryvolpiatto/exp, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 7646627bbf 34/95: * golden-ratio.el: Add group., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 07fc7d7f7b 35/95: Merge branch 'master' of github.com:thierryvolpiatto/golden-ratio.el, ELPA Syncer, 2023/09/07