From: Andreas Gerler Date: Tue, 11 Jun 2024 14:50:41 +0000 (+0200) Subject: imenu for eshell X-Git-Url: http://git.bundesbrandschatzamt.de/?a=commitdiff_plain;h=e8371180332f219be8f17a5f9953be3cf0413c85;p=emacsconfig.git imenu for eshell Signed-off-by: Andreas Gerler --- diff --git a/bba-shell.org b/bba-shell.org index fbf4867b..717df649 100644 --- a/bba-shell.org +++ b/bba-shell.org @@ -31,6 +31,14 @@ Some of my favorite bash aliases, can be even more helpful in Eshell. Like ‘ll (add-to-list 'eshell-command-aliases-list (list "ll" (concat ls " -AlohG --color=always") ))))) #+END_SRC + + #+begin_src elisp + (add-hook 'eshell-mode-hook + (lambda () + (setq-local imenu-generic-expression + '(("Prompt" ".*$ \\(.*\\)" 1))))) + #+end_src + What about =gd= to call the Diff command? #+BEGIN_SRC elisp