aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/shell.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 3a502634312..98c3b48fc69 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -252,12 +252,14 @@ Thus, this does not include the shell's current directory.")
252 252
253(defvar shell-mode-map nil) 253(defvar shell-mode-map nil)
254(cond ((not shell-mode-map) 254(cond ((not shell-mode-map)
255 (setq shell-mode-map (copy-keymap comint-mode-map)) 255 (setq shell-mode-map (nconc (make-sparse-keymap) comint-mode-map))
256 (define-key shell-mode-map "\C-c\C-f" 'shell-forward-command) 256 (define-key shell-mode-map "\C-c\C-f" 'shell-forward-command)
257 (define-key shell-mode-map "\C-c\C-b" 'shell-backward-command) 257 (define-key shell-mode-map "\C-c\C-b" 'shell-backward-command)
258 (define-key shell-mode-map "\t" 'comint-dynamic-complete) 258 (define-key shell-mode-map "\t" 'comint-dynamic-complete)
259 (define-key shell-mode-map "\M-?" 259 (define-key shell-mode-map "\M-?"
260 'comint-dynamic-list-filename-completions) 260 'comint-dynamic-list-filename-completions)
261 (define-key shell-mode-map [menu-bar completion]
262 (copy-keymap (lookup-key comint-mode-map [menu-bar completion])))
261 (define-key-after (lookup-key shell-mode-map [menu-bar completion]) 263 (define-key-after (lookup-key shell-mode-map [menu-bar completion])
262 [complete-env-variable] '("Complete Env. Variable Name" . 264 [complete-env-variable] '("Complete Env. Variable Name" .
263 shell-dynamic-complete-environment-variable) 265 shell-dynamic-complete-environment-variable)