summaryrefslogtreecommitdiff
path: root/lisp/eshell/em-pred.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-12-23 19:03:53 +0100
committerStefan Kangas <stefan@marxist.se>2021-12-24 15:36:48 +0100
commit31d34e43e54c6c45869562c40711cce6c5e48dab (patch)
tree15960f7702c1c4c71c8c1f1af42023e0b8dd30ea /lisp/eshell/em-pred.el
parent1668a9b91ec436f8d458dad65395c101e42ad1a8 (diff)
downloademacs-31d34e43e54c6c45869562c40711cce6c5e48dab.tar.gz
emacs-31d34e43e54c6c45869562c40711cce6c5e48dab.tar.bz2
emacs-31d34e43e54c6c45869562c40711cce6c5e48dab.zip
Use defvar-keymap in eshell
* lisp/eshell/em-cmpl.el (eshell-cmpl-mode-map): * lisp/eshell/em-hist.el (eshell-isearch-map, eshell-hist-mode-map): * lisp/eshell/em-pred.el (eshell-pred-mode-map): * lisp/eshell/em-prompt.el (eshell-prompt-mode-map): * lisp/eshell/em-rebind.el (eshell-rebind-mode-map): * lisp/eshell/esh-arg.el (eshell-arg-mode-map): * lisp/eshell/esh-mode.el (eshell-mode-map, eshell-command-map): * lisp/eshell/esh-proc.el (eshell-proc-mode-map): * lisp/eshell/esh-var.el (eshell-var-mode-map): Use defvar-keymap.
Diffstat (limited to 'lisp/eshell/em-pred.el')
-rw-r--r--lisp/eshell/em-pred.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/eshell/em-pred.el b/lisp/eshell/em-pred.el
index 75a803d3ad4..fc41bb82980 100644
--- a/lisp/eshell/em-pred.el
+++ b/lisp/eshell/em-pred.el
@@ -225,11 +225,9 @@ FOR LISTS OF ARGUMENTS:
EXAMPLES:
*.c(:o) sorted list of .c files")
-(defvar eshell-pred-mode-map
- (let ((map (make-sparse-keymap)))
- (define-key map (kbd "C-c M-q") #'eshell-display-predicate-help)
- (define-key map (kbd "C-c M-m") #'eshell-display-modifier-help)
- map))
+(defvar-keymap eshell-pred-mode-map
+ "C-c M-q" #'eshell-display-predicate-help
+ "C-c M-m" #'eshell-display-modifier-help)
;;; Functions: