Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
1ed30e75
Commit
1ed30e75
authored
Sep 18, 1994
by
Richard M. Stallman
Browse files
(shell-mode-map): Inherit comint-mode-map, but copy the completion menu.
parent
93103d17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/shell.el
lisp/shell.el
+3
-1
No files found.
lisp/shell.el
View file @
1ed30e75
...
...
@@ -252,12 +252,14 @@ Thus, this does not include the shell's current directory.")
(
defvar
shell-mode-map
nil
)
(
cond
((
not
shell-mode-map
)
(
setq
shell-mode-map
(
co
py
-keymap
comint-mode-map
))
(
setq
shell-mode-map
(
n
co
nc
(
make-sparse
-keymap
)
comint-mode-map
))
(
define-key
shell-mode-map
"\C-c\C-f"
'shell-forward-command
)
(
define-key
shell-mode-map
"\C-c\C-b"
'shell-backward-command
)
(
define-key
shell-mode-map
"\t"
'comint-dynamic-complete
)
(
define-key
shell-mode-map
"\M-?"
'comint-dynamic-list-filename-completions
)
(
define-key
shell-mode-map
[menu-bar
completion]
(
copy-keymap
(
lookup-key
comint-mode-map
[menu-bar
completion]
)))
(
define-key-after
(
lookup-key
shell-mode-map
[menu-bar
completion]
)
[complete-env-variable]
'
(
"Complete Env. Variable Name"
.
shell-dynamic-complete-environment-variable
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment