From 30e6d213aaac54a22b697ea0e215064430106381 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Fri, 11 Sep 2015 00:05:08 -0400 Subject: [PATCH] spacemacs-core: revert layout-double-columns and layout-triple-columns --- layers/!distribution/spacemacs-core/funcs.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/layers/!distribution/spacemacs-core/funcs.el b/layers/!distribution/spacemacs-core/funcs.el index 53724b80e..cc2a00626 100644 --- a/layers/!distribution/spacemacs-core/funcs.el +++ b/layers/!distribution/spacemacs-core/funcs.el @@ -434,6 +434,21 @@ argument takes the kindows rotate backwards." (let ((newbuf (generate-new-buffer-name "untitled"))) (switch-to-buffer newbuf))) +(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)) + +(defun spacemacs/layout-double-columns () + " Set the layout to double columns. " + (interactive) + (golden-ratio-mode 1) + (delete-other-windows) + (split-window-right)) + (defun spacemacs/home () "Go to home Spacemacs buffer" (interactive)