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:
parent
b811475077
commit
c39e8a9e53
|
@ -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))
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue