summary refs log tree commit diff
path: root/emacs/custom/fcuny-eshell.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-10-27 08:36:46 -0700
committerFranck Cuny <franck@fcuny.net>2021-10-27 08:36:46 -0700
commita4b04f9778c2fca2fcef14abd8eb13e83e7ab33b (patch)
tree4beeccb7b90c157420be2ad715c52535036ef16e /emacs/custom/fcuny-eshell.el
parenteshell: open file at point (diff)
downloademacs.d-a4b04f9778c2fca2fcef14abd8eb13e83e7ab33b.tar.gz
emacs: split horizontally to create eshell buffer
Diffstat (limited to 'emacs/custom/fcuny-eshell.el')
-rw-r--r--emacs/custom/fcuny-eshell.el5
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 ()