aboutsummaryrefslogtreecommitdiffstats
path: root/oni-eshell.el
diff options
context:
space:
mode:
authorGravatar Tom Willemse2019-05-31 07:48:35 -0700
committerGravatar Tom Willemse2019-05-31 07:48:35 -0700
commit08cbbcec4df2ce30f9e0959ea36a167a9bd0005a (patch)
tree0a3f24c94db170e4fc80d617149a2c9572aa92ff /oni-eshell.el
parent71d68920fe3e076f85ea2dbc3a39f2067b571b05 (diff)
downloademacs-config-08cbbcec4df2ce30f9e0959ea36a167a9bd0005a.tar.gz
emacs-config-08cbbcec4df2ce30f9e0959ea36a167a9bd0005a.zip
Add esh-autosuggest to eshell
Diffstat (limited to 'oni-eshell.el')
-rw-r--r--oni-eshell.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/oni-eshell.el b/oni-eshell.el
index f3f5b71..1293749 100644
--- a/oni-eshell.el
+++ b/oni-eshell.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 20190226021452
-;; Package-Requires: (eshell-fringe-status)
+;; Version: 20190531074826
+;; Package-Requires: (eshell-fringe-status esh-autosuggest)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -28,6 +28,7 @@
(require 'eshell)
(require 'em-prompt)
+(require 'esh-autosuggest)
(defun oni-eshell--C-d ()
"Call `delete-char' or close the buffer if it fails."
@@ -47,9 +48,10 @@
"Set `C-d' to quit eshell if used at end of prompt."
(define-key eshell-mode-map (kbd "C-d") #'oni-eshell--C-d))
+(add-hook 'eshell-first-time-mode-hook #'oni-eshell--set-eshell-C-d)
(add-hook 'eshell-load-hook #'oni-eshell--enable-truncating-buffers)
+(add-hook 'eshell-mode-hook 'esh-autosuggest-mode)
(add-hook 'eshell-mode-hook 'goto-address-mode)
-(add-hook 'eshell-first-time-mode-hook #'oni-eshell--set-eshell-C-d)
(if (window-system)
(add-hook 'eshell-mode-hook 'eshell-fringe-status-mode))