branch: elpa/golden-ratio
commit d5413c832b51f428ea499237c1dde963d5d9b296
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Fix types in golden-ratio-exclude-modes.
* golden-ratio.el (golden-ratio-exclude-modes): Fix types.
(golden-ratio-exclude-major-mode-p): Check first symbols.
---
golden-ratio.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/golden-ratio.el b/golden-ratio.el
index 48e6e428c5..d32d73de92 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -31,7 +31,7 @@
"A list of symbols or strings naming major modes.
Switching to a buffer whose major mode is a member of this list
will not cause the window to be resized to the golden ratio."
- :type '(repeat string)
+ :type '(repeat (choice symbol string))
:group 'golden-ratio)
;; Buffer names that are exempt from being resized. An example of this
@@ -122,9 +122,9 @@ will not cause the window to be resized to the golden
ratio."
(defun golden-ratio-exclude-major-mode-p ()
"Returns non-nil if `major-mode' should not use golden-ratio."
- (or (member (symbol-name major-mode)
- golden-ratio-exclude-modes)
- (memq major-mode golden-ratio-exclude-modes)))
+ (or (memq major-mode golden-ratio-exclude-modes)
+ (member (symbol-name major-mode)
+ golden-ratio-exclude-modes)))
;;;###autoload
(defun golden-ratio ()