]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
imenu for eshell
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Tue, 11 Jun 2024 14:50:41 +0000 (16:50 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Tue, 11 Jun 2024 14:50:41 +0000 (16:50 +0200)
Signed-off-by: Andreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
bba-shell.org

index fbf4867b9273a107fa64105386cc36533188ff21..717df6495fe4a367c7c9e3305df130d81a54788e 100644 (file)
@@ -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