summaryrefslogtreecommitdiff
path: root/emacs/custom
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/my-eshell.el17
1 files changed, 0 insertions, 17 deletions
diff --git a/emacs/custom/my-eshell.el b/emacs/custom/my-eshell.el
index 3bf7585..a5cc33b 100644
--- a/emacs/custom/my-eshell.el
+++ b/emacs/custom/my-eshell.el
@@ -45,22 +45,6 @@
(eshell/alias "cal" "calendar")
(eshell/alias "agenda" "org-agenda"))
-(defun my/eshell-here ()
- "Opens a new shell in the directory associated with the current buffer's file.
-The eshell is renamed to match that directory to make multiple
-eshell windows easier."
- (interactive)
- (let* ((parent (if (buffer-file-name)
- (file-name-directory (buffer-file-name))
- default-directory))
- (name (car (last (split-string parent "/" t)))))
- (split-window-horizontally)
- (other-window 1)
- (eshell "new")
- (rename-buffer (concat "*eshell: " name "*"))
- (insert (concat "ls " "-lh"))
- (eshell-send-input)))
-
(defvar-local my/eshell-output-buffer "*Exported eshell output*"
"Name of buffer with the last output of Eshell command.")
@@ -120,7 +104,6 @@ append to it, while separating multiple outputs with
(with-face "λ" :foreground "#63c904"))
(with-face " " :foreground "#000000")))
-(global-set-key (kbd "C-c e h") 'my/eshell-here)
(define-key eshell-mode-map (kbd "C-c e e") 'my/eshell-export)
(customize-set-variable 'eshell-scroll-to-bottom-on-input 'all)