Skip to content

Instantly share code, notes, and snippets.

@semmypurewal
Created November 24, 2014 18:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save semmypurewal/b7748e0d6785f3c50e46 to your computer and use it in GitHub Desktop.
Save semmypurewal/b7748e0d6785f3c50e46 to your computer and use it in GitHub Desktop.
open-mini-eshell
;; open up a mini-eshell
(defun quarter-window-vertically ()
"create a new window a quarter size of the current window"
(split-window-vertically)
(other-window 1)
(split-window-vertically)
(other-window -1)
(delete-window)
)
(defun open-mini-eshell ()
"open a mini-eshell in a small window at the bottom of the current window"
(interactive)
(quarter-window-vertically)
(other-window 1)
(eshell)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment