[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This mode is used for editing shell scripts written for the Bourne (sh), Korn
(ksh) or Bourne Again (bash) shells. It is NOT automatically invoked for any
particular file extension. To invoke this mode while editing a file, type
M-x ksh-mode
.
The following key mappings are defined:
linefeed | reindent-then-newline-and-indent |
tab | ksh-indent-line |
C-c | << Prefix Command >> |
C-i | ksh-indent-line |
C-j | reindent-then-newline-and-indent |
M-tab | ksh-complete-symbol |
M-C-i | ksh-complete-symbol |
C-c tab | ksh-completion-init-and-pickup |
C-c C-i | ksh-completion-init-and-pickup |
The variables controlling indentation style are:
ksh-indent
ksh-case-indent
ksh-case-item-offset
ksh-group-offset
ksh-brace-offset
ksh-multiline-offset
\
to make it continue on next line.
ksh-tab-always-indent
TAB
key. If t (the default), always
reindent the current line. If nil, indent the current line only if
point is at the left margin or in the line's indentation; otherwise
insert a tab.
ksh-match-and-tell
ksh-align-to-keyword
ksh-comment-regexp
An example of how to set up this mode is as follows:
(setq ksh-mode-hook (function (lambda () (font-lock-mode 1) ;; font-lock the buffer (setq ksh-indent 8) (setq ksh-group-offset -8) (setq ksh-brace-offset -8) (setq ksh-tab-always-indent t) (setq ksh-match-and-tell t) (setq ksh-align-to-keyword t) ;; Turn on keyword alignment ))) |
To configure this package please view the source code. This can be done by typing C-x 4 l ksh-mode.
For a related package, see sh-script
.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated by XEmacs shared group account on December, 19 2009
using texi2html 1.65.