splits.mp4
(defun amir-zoom-buffer ()
(interactive)
(progn
(evil-window-set-width (frame-width))
(evil-window-set-height (frame-height))
(redraw-display)))
(defun amir-resize-equal ()
(interactive)
(balance-windows)
(redraw-display))
(defun amir-resize-window-dwim ()
(interactive)
(let ((maximize (< (window-width) (/ (frame-width) 2))))
(cond ((< (window-width) 80) (evil-window-set-width 80))
(maximize
(progn
(evil-window-set-width (frame-width))
(evil-window-set-height (frame-height))
(redraw-display)))
((not maximize) (evil-window-set-width 80)))))
(defun amir-resize-window-vertical+ ()
(interactive)
(evil-window-set-height (+ (window-height) 10)))
(defun amir-resize-window-vertical- ()
(interactive)
(evil-window-set-height (- (window-height) 10)))
(defun amir-resize-window-horizontal+ ()
(interactive)
(evil-window-set-width (+ (window-width) 10)))
(defun amir-resize-window-horizontal- ()
(interactive)
(evil-window-set-width (- (window-width) 10)))