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
9f299ecb
Commit
9f299ecb
authored
Nov 21, 2000
by
Stefan Monnier
Browse files
(shell-mode): Use define-derived-mode.
parent
2e1fbba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
lisp/shell.el
lisp/shell.el
+1
-7
No files found.
lisp/shell.el
View file @
9f299ecb
...
...
@@ -337,7 +337,7 @@ Thus, this does not include the shell's current directory.")
(
put
'shell-mode
'mode-class
'special
)
(
def
un
shell-mode
()
(
def
ine-derived-mode
shell-mode
comint-mode
"Shell"
"Major mode for interacting with an inferior shell.
\\[comint-send-input] after the end of the process' output sends the text from
the end of process to the end of the current line.
...
...
@@ -389,11 +389,6 @@ Variables `comint-output-filter-functions', a hook, and
`comint-scroll-to-bottom-on-input' and `comint-scroll-to-bottom-on-output'
control whether input and output cause the window to scroll to the end of the
buffer."
(
interactive
)
(
comint-mode
)
(
setq
major-mode
'shell-mode
)
(
setq
mode-name
"Shell"
)
(
use-local-map
shell-mode-map
)
(
setq
comint-prompt-regexp
shell-prompt-pattern
)
(
setq
comint-completion-fignore
shell-completion-fignore
)
(
setq
comint-delimiter-argument-list
shell-delimiter-argument-list
)
...
...
@@ -438,7 +433,6 @@ buffer."
(
cond
((
string-equal
shell
"sh"
)
"pwd"
)
((
string-equal
shell
"ksh"
)
"echo $PWD ~-"
)
(
t
"dirs"
))))
(
run-hooks
'shell-mode-hook
)
(
comint-read-input-ring
t
))
(
defun
shell-write-history-on-exit
(
process
event
)
...
...
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