[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/golden-ratio 72b028808b 83/95: Allow buffer exclusion with
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/golden-ratio 72b028808b 83/95: Allow buffer exclusion with regular expressions (#58). |
Date: |
Thu, 7 Sep 2023 22:02:15 -0400 (EDT) |
branch: elpa/golden-ratio
commit 72b028808b41d23fa3f7e8c0d23d2c475e7b46ae
Author: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Commit: Thierry Volpiatto <thierry.volpiatto@gmail.com>
Allow buffer exclusion with regular expressions (#58).
* golden-ratio.el (golden-ratio-exclude-buffer-regexp): New user var.
(golden-ratio): Use it.
---
golden-ratio.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/golden-ratio.el b/golden-ratio.el
index 58190b7f83..b16441a8c4 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -80,6 +80,12 @@ will not cause the window to be resized to the golden ratio."
:group 'golden-ratio
:type 'boolean)
+(defcustom golden-ratio-exclude-buffer-regexp nil
+ "A list of regexp's used to match buffer names.
+Switching to a buffer whose name matches one of these regexps
+will prevent the window to be resized to the golden ratio."
+ :type '(repeat string)
+ :group 'golden-ratio)
;;; Compatibility
;;
@@ -136,6 +142,9 @@ will not cause the window to be resized to the golden
ratio."
(golden-ratio-exclude-major-mode-p)
(member (buffer-name)
golden-ratio-exclude-buffer-names)
+ (and golden-ratio-exclude-buffer-regexp
+ (loop for r in golden-ratio-exclude-buffer-regexp
+ thereis (string-match r (buffer-name))))
(and golden-ratio-inhibit-functions
(loop for fun in golden-ratio-inhibit-functions
thereis (funcall fun))))
- [nongnu] elpa/golden-ratio 79ead1cba6 61/95: Merge pull request #35 from thierryvolpiatto/master, (continued)
- [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
- [nongnu] elpa/golden-ratio 5a661d32df 80/95: Fix usage of golden-ration in gnus buffers (#49)., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 4f24b707da 82/95: Allow using golden-ration command when golden-ratio-mode is disabled (#51)., ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 72b028808b 83/95: Allow buffer exclusion with regular expressions (#58).,
ELPA Syncer <=
- [nongnu] elpa/golden-ratio d06170e2b7 84/95: fix for persp-switch-quick, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 9059e1d139 87/95: Merge pull request #66 from Bad-ptr/master, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 007911d8a4 89/95: Merge pull request #62 from arbelt/persp-fix, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 0ea8c89807 90/95: Add license header, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 362ab0ede7 91/95: Bump version to 1.0.1, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 3d93baf3c0 94/95: Merge pull request #92 from shouya/minimal-change, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 650121be18 18/95: Support exclusions based on buffer name or major mode, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio 9843ca2239 20/95: Merge pull request #15 from hickinbottoms/feature/add-exemptions, ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio feddcbe68b 21/95: Merge remote-tracking branch 'upstream/master', ELPA Syncer, 2023/09/07
- [nongnu] elpa/golden-ratio ef6f8ce72d 22/95: Support exclusions based on inhabit function, ELPA Syncer, 2023/09/07