diff options
| author | Craig Jennings <c@cjennings.net> | 2025-09-03 12:38:50 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2025-09-03 12:38:50 -0500 |
| commit | 263ac0cdd583c37e9713fcd7e22ff6a70f259269 (patch) | |
| tree | 4cbed87199f4648cbac8627777f677f91a7fa3bc /modules | |
| parent | 585bc649e02f0b31a181c3ff0c465f51d09d3f49 (diff) | |
| download | dotemacs-263ac0cdd583c37e9713fcd7e22ff6a70f259269.tar.gz dotemacs-263ac0cdd583c37e9713fcd7e22ff6a70f259269.zip | |
added functionality for eshell
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/eshell-vterm-config.el | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/eshell-vterm-config.el b/modules/eshell-vterm-config.el index 178f23db..c882e06f 100644 --- a/modules/eshell-vterm-config.el +++ b/modules/eshell-vterm-config.el @@ -127,6 +127,30 @@ :config (setenv "TERM" "xterm-256color")) +(use-package eshell-syntax-highlighting + :after esh-mode + :config + (eshell-syntax-highlighting-global-mode +1)) + +(use-package eshell-up + :after eshell + :config + (defalias 'eshell/up 'eshell-up) + (defalias 'eshell/up-peek 'eshell-up-peek)) + +;; Enhance history searching +(defun cj/eshell-history-search () + "Search eshell history with completion." + (interactive) + (insert + (completing-read "Eshell history: " + (delete-dups + (ring-elements eshell-history-ring))))) + +(add-hook 'eshell-mode-hook + (lambda () + (define-key eshell-mode-map (kbd "C-r") 'cj/eshell-history-search))) + ;; ------------------------------ Vterm ------------------------------ ;; faster and highly dependable, but not extensible |
