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
a7dba40b
Commit
a7dba40b
authored
Nov 21, 2001
by
Richard M. Stallman
Browse files
(sh-mode): Don't use define-derived-mode.
parent
5ca809a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
lisp/progmodes/sh-script.el
lisp/progmodes/sh-script.el
+6
-1
No files found.
lisp/progmodes/sh-script.el
View file @
a7dba40b
...
...
@@ -1227,7 +1227,7 @@ frequently editing existing scripts with different styles.")
(put 'sh-mode 'mode-class 'special)
;;;###autoload
(def
ine-derived-mode sh-mode nil "
Shell-script
"
(def
un sh-mode ()
"
Major
mode
for
editing
shell
scripts.
This
mode
works
for
many
shells,
since
they
all
have
roughly
the
same
syntax,
as
far
as
commands,
arguments,
variables,
pipes,
comments
etc.
are
concerned.
...
...
@@ -1280,6 +1280,11 @@ indicate what shell it is use `sh-alias-alist' to translate.
If
your
shell
gives
error
messages
with
line
numbers,
you
can
use
\\[executable-interpret]
with
your
script
for
an
edit-interpret-debug
cycle.
"
(interactive)
(kill-all-local-variables)
(setq major-mode 'sh-mode
mode-name "
Shell-script
")
(use-local-map sh-mode-map)
(make-local-variable 'skeleton-end-hook)
(make-local-variable 'paragraph-start)
(make-local-variable 'paragraph-separate)
...
...
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