 
 
 (provide 'init-windows)
+;;; init-windows.el ends here

;; Rearrange split windows
;;----------------------------------------------------------------------------
(defun split-window-horizontally-instead ()
  (interactive)
  (save-excursion
    (delete-other-windows)
    (funcall (split-window-func-with-other-buffer 'split-window-horizontally))))

(defun split-window-vertically-instead ()
  (interactive)
  (save-excursion
    (delete-other-windows)

(global-set-key (kbd "C-x o") 'switch-window)


(defun split-window-func-with-other-buffer (split-function)
  "When splitting window (via `SPLIT-FUNCTION'), show (other-buffer) in the new window."
  (lexical-let ((s-f split-function))
    (lambda ()
      (interactive)
