summaryrefslogtreecommitdiff
path: root/emacs/.config/emacs-kj/eshell.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.config/emacs-kj/eshell.el')
-rw-r--r--emacs/.config/emacs-kj/eshell.el19
1 files changed, 17 insertions, 2 deletions
diff --git a/emacs/.config/emacs-kj/eshell.el b/emacs/.config/emacs-kj/eshell.el
index b475915..05b7fac 100644
--- a/emacs/.config/emacs-kj/eshell.el
+++ b/emacs/.config/emacs-kj/eshell.el
@@ -5,12 +5,27 @@
(lambda ()
(setenv "PAGER" "cat"))
(setenv "EDITOR" "emacsclient"))
- (setq eshell-prefer-lisp-functions t)
+ (setq eshell-prefer-lisp-functions nil
+ eshell-scroll-to-bottom-on-input 'all
+ eshell-hist-ignoredups t
+ eshell-error-if-no-glob t)
(setq tramp-remote-path '(tramp-own-remote-path))
- (add-to-list 'eshell-load-hook #'kj/on-eshell-load))
+ (add-to-list 'eshell-modules-list 'eshell-tramp)
+ (add-to-list 'eshell-load-hook #'kj/on-eshell-load)
+
+ (add-hook 'eshell-mode-hook 'visual-line-mode))
+
+(use-package esh-help
+ :init
+ (setup-esh-help-eldoc))
+
+(use-package eshell-syntax-highlighting
+ :hook (eshell-mode . eshell-syntax-highlighting-mode))
(defun kj/on-eshell-load (&args rest)
+ (add-to-list 'eshell-visual-commands
+ '("htop" "tmux" "vim" "nvim"))
(add-to-list 'eshell-complex-commands "ssh"))
(defun eshell/ssh (&rest args)