diff options
author | Franck Cuny <franck@fcuny.net> | 2022-10-24 08:05:16 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-10-24 08:05:16 -0700 |
commit | 76bfbd2b93f805197991330478c212bf2745de64 (patch) | |
tree | 402e4b2386220d44d184ccf4ff9ca3f922781c1d /emacs | |
parent | fix(eshell): remove two unused functions (diff) | |
download | emacs.d-76bfbd2b93f805197991330478c212bf2745de64.tar.gz |
ref(eshell): remove the function `my/eshell-here'
I prefer to open a shell using project.el. Change-Id: I4b1c533f58955207228e703ca4da567fa89622d9
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs/custom/my-eshell.el | 17 |
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) |