From 76bfbd2b93f805197991330478c212bf2745de64 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 24 Oct 2022 08:05:16 -0700 Subject: ref(eshell): remove the function `my/eshell-here' I prefer to open a shell using project.el. Change-Id: I4b1c533f58955207228e703ca4da567fa89622d9 --- emacs/custom/my-eshell.el | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'emacs') 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) -- cgit 1.4.1