Add function to open shell at the bottom
This commit is contained in:
parent
4019155ffc
commit
0d3d39b109
1 changed files with 9 additions and 0 deletions
|
@ -527,5 +527,14 @@ an ALIAS and SERVICE as arguments and call
|
|||
|
||||
(global-set-key (kbd "C-<f12>") #'mk/set-frame-size-85x50)
|
||||
|
||||
(defun shell-new-bottom ()
|
||||
"Open a shell window in the bottom third of the current window."
|
||||
(interactive)
|
||||
(let* ((current-window (selected-window))
|
||||
(new-window (split-window-below (- (window-height) (/ (window-height) 3)))))
|
||||
(select-window new-window)
|
||||
(shell)
|
||||
(select-window current-window)))
|
||||
|
||||
(provide 'bundle-mk)
|
||||
;;; bundle-mk.el ends here
|
||||
|
|
Loading…
Add table
Reference in a new issue