Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow using golden-ration command when golden-ratio-mode is disabled (#…

…51).

* golden-ratio.el (golden-ratio): Check if golden-ration is called interactively.
  • Loading branch information...
commit 4f24b707da43ace4a20cc84d2fff31fb8ecace1c 1 parent ac9bced
@thierryvolpiatto thierryvolpiatto authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 golden-ratio.el
View
6 golden-ratio.el
@@ -127,10 +127,10 @@ will not cause the window to be resized to the golden ratio."
golden-ratio-exclude-modes)))
;;;###autoload
-(defun golden-ratio ()
+(defun golden-ratio (&optional arg)
"Resizes current window to the golden-ratio's size specs."
- (interactive)
- (unless (or (not golden-ratio-mode)
+ (interactive "p")
+ (unless (or (and (not golden-ratio-mode) (null arg))
(window-minibuffer-p)
(one-window-p)
(golden-ratio-exclude-major-mode-p)
Please sign in to comment.
Something went wrong with that request. Please try again.