diff options
author | Franck Cuny <franck@fcuny.net> | 2021-10-27 08:36:46 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-10-27 08:36:46 -0700 |
commit | a4b04f9778c2fca2fcef14abd8eb13e83e7ab33b (patch) | |
tree | 4beeccb7b90c157420be2ad715c52535036ef16e /emacs/custom | |
parent | eshell: open file at point (diff) | |
download | emacs.d-a4b04f9778c2fca2fcef14abd8eb13e83e7ab33b.tar.gz |
emacs: split horizontally to create eshell buffer
Diffstat (limited to 'emacs/custom')
-rw-r--r-- | emacs/custom/fcuny-eshell.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/emacs/custom/fcuny-eshell.el b/emacs/custom/fcuny-eshell.el index 2f53988..fce4ccb 100644 --- a/emacs/custom/fcuny-eshell.el +++ b/emacs/custom/fcuny-eshell.el @@ -114,13 +114,12 @@ multiple eshell windows easier." (let* ((parent (if (buffer-file-name) (file-name-directory (buffer-file-name)) default-directory)) - (height (/ (window-total-height) 3)) (name (car (last (split-string parent "/" t))))) - (split-window-vertically (- height)) + (split-window-horizontally) (other-window 1) (eshell "new") (rename-buffer (concat "*eshell: " name "*")) - (insert (concat "ls")) + (insert (concat "ls " "-lh")) (eshell-send-input))) (defun fcuny/eshell-main () |