diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-12-23 19:03:53 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-12-24 15:36:48 +0100 |
commit | 31d34e43e54c6c45869562c40711cce6c5e48dab (patch) | |
tree | 15960f7702c1c4c71c8c1f1af42023e0b8dd30ea /lisp/eshell/esh-var.el | |
parent | 1668a9b91ec436f8d458dad65395c101e42ad1a8 (diff) | |
download | emacs-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/esh-var.el')
-rw-r--r-- | lisp/eshell/esh-var.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el index fa9853ae00a..9aa50f2bd0f 100644 --- a/lisp/eshell/esh-var.el +++ b/lisp/eshell/esh-var.el @@ -209,10 +209,8 @@ environment of created subprocesses." (put 'eshell-variable-aliases-list 'risky-local-variable t) -(defvar eshell-var-mode-map - (let ((map (make-sparse-keymap))) - (define-key map (kbd "C-c M-v") #'eshell-insert-envvar) - map)) +(defvar-keymap eshell-var-mode-map + "C-c M-v" #'eshell-insert-envvar) ;;; Functions: |