summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-01-03 22:32:41 -0600
committerCase Duckworth2022-01-03 22:36:36 -0600
commit0ef125fb4de7f624edc9e66e7491deb329cbafd4 (patch)
tree8d1ce32c79410300891507d9828002914e1e7a78
parentConfigure dired (diff)
downloademacs-0ef125fb4de7f624edc9e66e7491deb329cbafd4.tar.gz
emacs-0ef125fb4de7f624edc9e66e7491deb329cbafd4.zip
Add imenu-generic-expression to eshell
-rw-r--r--init.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/init.el b/init.el index 2651d14..e7d9d9e 100644 --- a/init.el +++ b/init.el
@@ -258,8 +258,14 @@
258 (add-hook 'eshell-mode-hook 258 (add-hook 'eshell-mode-hook
259 (defun +eshell@setup () 259 (defun +eshell@setup ()
260 "Eshell improperly does loading. Gah." 260 "Eshell improperly does loading. Gah."
261 (interactive)
261 (dolist (setting `((outline-regexp . ,eshell-prompt-regexp) 262 (dolist (setting `((outline-regexp . ,eshell-prompt-regexp)
262 (page-delimiter . ,eshell-prompt-regexp))) 263 (page-delimiter . ,eshell-prompt-regexp)
264 (imenu-generic-expression
265 . ,`(("Prompt"
266 ,(concat eshell-prompt-regexp
267 "\\(.*\\)")
268 1)))))
263 (set (make-local-variable (car setting)) (cdr setting))) 269 (set (make-local-variable (car setting)) (cdr setting)))
264 (dolist (binding `(("C-d" . +eshell-quit-or-delete-char))) 270 (dolist (binding `(("C-d" . +eshell-quit-or-delete-char)))
265 (define-key eshell-mode-map 271 (define-key eshell-mode-map