resize-shell-to-desired-width check for shell buffer before changing size

This commit is contained in:
Thanh 2018-06-06 23:52:46 -06:00 committed by syl20bnr
parent 767661fa2e
commit 76cf97e6a8
1 changed files with 2 additions and 2 deletions

View File

@ -49,10 +49,10 @@
(call-interactively (intern (format "spacemacs/shell-pop-%S" shell)))))
(defun spacemacs/resize-shell-to-desired-width ()
(if (string= (buffer-name) shell-pop-last-shell-buffer-name)
(enlarge-window-horizontally (-
(/ (* (frame-width) shell-default-width) 100)
(window-width)))
)
(window-width)))))
(defmacro make-shell-pop-command (func &optional shell)
"Create a function to open a shell via the function FUNC.