Dont use count-window globally

This commit is contained in:
Marcus Kammer 2020-08-05 09:09:49 +02:00
parent 7cf7081d50
commit 2b3a9a5567

View file

@ -33,7 +33,7 @@
(defun me/split-windows-horizontal ()
; Split windows horizontal by equal width
(interactive)
(defvar count-windows 3)
(setq count-windows 3)
(delete-other-windows)
(let ((width (/ (window-total-width) count-windows)))
(setq count 0)