diff options
-rw-r--r-- | init.org | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -2766,11 +2766,16 @@ #+end_src *** Eshell ***** Basic custom - #+BEGIN_SRC emacs-lisp - (setq eshell-directory-name "~/.emacs.d/eshell") - (setq eshell-aliases-file (jao-data-file "eshell.alias")) - (setq eshell-hist-ignoredups 'erase) - #+END_SRC + #+begin_src emacs-lisp + (use-package eshell + :init + (setq eshell-directory-name "~/.emacs.d/eshell") + (setq eshell-aliases-file (jao-data-file "eshell.alias")) + (setq eshell-hist-ignoredups 'erase) + :config + (add-hook 'eshell-mode-hook + (lambda () (setq outline-regexp eshell-prompt-regexp)))) + #+end_src ***** Colors #+begin_src emacs-lisp (autoload 'ansi-color-apply "ansi-color") @@ -2906,7 +2911,8 @@ ***** Keybindings #+begin_src emacs-lisp (defun jao-eshell--kbds () - (define-key eshell-mode-map "\C-a" 'jao-eshell-maybe-bol)) + (define-key eshell-mode-map "\C-a" 'jao-eshell-maybe-bol) + (define-key eshell-mode-map "\C-ci" 'consult-outline)) ;; Eshell mode is sillily re-creating its mode map ;; in every buffer in emacs < 28. (if (> emacs-major-version 27) |