Switch between columns layout toggle golden-ratio.

While columns layout change between 2 and 3 golden-ratio-mode toggle but
should not.

Fixes syl20bnr/spacemacs#3750.
This commit is contained in:
geksilla 2015-11-10 21:39:55 +02:00 committed by Eivind Fonn
parent b811475077
commit c39e8a9e53
2 changed files with 1 additions and 3 deletions

View file

@ -384,7 +384,6 @@ argument takes the kindows rotate backwards."
(defun spacemacs/layout-triple-columns ()
" Set the layout to triple columns. "
(interactive)
(golden-ratio-mode 0)
(delete-other-windows)
(dotimes (i 2) (split-window-right))
(balance-windows))
@ -392,7 +391,6 @@ argument takes the kindows rotate backwards."
(defun spacemacs/layout-double-columns ()
" Set the layout to double columns. "
(interactive)
(golden-ratio-mode 1)
(delete-other-windows)
(split-window-right))

View file

@ -457,7 +457,7 @@ Ensure that helm is required before calling FUNC."
(defun spacemacs//window-manipulation-gratio-doc ()
"Help string for golden ratio"
(format "(golden-ration %s) toggle with [g]"
(format "(golden-ratio %s) toggle with [g]"
(if (symbol-value golden-ratio-mode) "enabled" "disabled")))
(spacemacs|define-micro-state window-manipulation