From 0ef125fb4de7f624edc9e66e7491deb329cbafd4 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 3 Jan 2022 22:32:41 -0600 Subject: Add imenu-generic-expression to eshell --- init.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 2651d14..e7d9d9e 100644 --- a/init.el +++ b/init.el @@ -258,8 +258,14 @@ (add-hook 'eshell-mode-hook (defun +eshell@setup () "Eshell improperly does loading. Gah." + (interactive) (dolist (setting `((outline-regexp . ,eshell-prompt-regexp) - (page-delimiter . ,eshell-prompt-regexp))) + (page-delimiter . ,eshell-prompt-regexp) + (imenu-generic-expression + . ,`(("Prompt" + ,(concat eshell-prompt-regexp + "\\(.*\\)") + 1))))) (set (make-local-variable (car setting)) (cdr setting))) (dolist (binding `(("C-d" . +eshell-quit-or-delete-char))) (define-key eshell-mode-map -- cgit 1.4.1-21-gabe81