From 05d874fc8a5366c86c6d9ee1980b1f48c67c8f08 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Thu, 30 May 2024 18:03:48 +0200 Subject: [PATCH] eshell-visual-commands ec2 Signed-off-by: Andreas Gerler --- bba-shell.org | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bba-shell.org b/bba-shell.org index 1abdf0f7..cb780637 100644 --- a/bba-shell.org +++ b/bba-shell.org @@ -113,7 +113,9 @@ A little bit of code from https://github.com/bodil/emacs.d/blob/master/bodil/bod (add-hook 'eshell-load-hook #'eat-eshell-visual-command-mode) #+end_src - +#+begin_src elisp + (add-to-list 'eshell-visual-commands "ec2") +#+end_src ** Most of this stolen from the great [[https://github.com/howardabrams/hamacs/blob/main/ha-eshell.org][Howard Abrams]]! [2022-12-08 Thu 17:43] *** Aliases @@ -144,6 +146,7 @@ For instance, while I would like to have the following, the real solution is to alias less view-file $1 #+end_src + Third, you want more /control/, you can use the help:eshell/alias function, but it doesn’t honor =$1= and other parameters, so we could create conditionally create function that we add to the [[help:eshell-mode-hook][eshell-mode-hook]], for instance: #+begin_src emacs-lisp :tangle no (defun ha-eshell-add-aliases () -- 2.47.3