projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b44dfb3
)
fix "M-r" binding for eshell history completion
author
Amin Bandali
<bandali@gnu.org>
Sun, 16 May 2021 00:48:32 +0000
(20:48 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Sun, 16 May 2021 00:48:32 +0000
(20:48 -0400)
.emacs.d/lisp/bandali-eshell.el
patch
|
blob
|
blame
|
history
diff --git
a/.emacs.d/lisp/bandali-eshell.el
b/.emacs.d/lisp/bandali-eshell.el
index
820dc05
..
574d8e1
100644
(file)
--- a/
.emacs.d/lisp/bandali-eshell.el
+++ b/
.emacs.d/lisp/bandali-eshell.el
@@
-59,6
+59,10
@@
(let ((inhibit-read-only t))
(erase-buffer))
(eshell-send-input))
(let ((inhibit-read-only t))
(erase-buffer))
(eshell-send-input))
+ (defun b/eshell-history ()
+ (interactive)
+ (completing-read "Eshell history: "
+ (ring-elements eshell-history-ring)))
(defun b/eshell-setup ()
(make-local-variable 'company-idle-delay)
(defvar company-idle-delay)
(defun b/eshell-setup ()
(make-local-variable 'company-idle-delay)
(defvar company-idle-delay)
@@
-71,12
+75,8
@@
#'b/eshell-quit-or-delete-char)
(define-key eshell-mode-map (kbd "C-S-l")
#'b/eshell-clear)
#'b/eshell-quit-or-delete-char)
(define-key eshell-mode-map (kbd "C-S-l")
#'b/eshell-clear)
- (define-key eshell-mode-map (kbd "M-r")
- #'counsel-esh-history)
- ;; (define-key eshell-mode-map [tab]
- ;; #'company-complete)
(define-key eshell-hist-mode-map (kbd "M-r")
(define-key eshell-hist-mode-map (kbd "M-r")
- #'
counsel-esh
-history)))
+ #'
b/eshell
-history)))
;; global key bindings
(global-set-key (kbd "C-c a s e") #'eshell)
;; hooks
;; global key bindings
(global-set-key (kbd "C-c a s e") #'eshell)
;; hooks