[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

28. Editing Tcl Code

This mode is used to edit Tcl code. The mode is automatically invoked for buffers visiting the following types of files:

The mode provides the following capabilities:

The variables controlling indentation style are:

Indentation of Tcl statements within surrounding block.

Indentation of continuation line relative to first line of command.

The variables controlling user interaction with mode (see variable documentation for details) are:

Controls action of TAB key.

Non-nil means automatically newline before and after braces, brackets, and semicolons inserted in Tcl code.

Controls action of `#' key.

If t, use more complicated, but slower, comment detector. This variable is only used in Emacs 19.

If not nil, use a smarter, Tcl-specific way to find the current word when looking up help on a Tcl command.

Turning on Tcl mode calls the value of the variable tcl-mode-hook with no args, if that value is non-nil. Read the documentation for tcl-mode-hook to see what kinds of interesting hook functions already exist.

The following key mappings are defined:

# tcl-electric-hash
; tcl-electric-char
[ tcl-electric-char
] tcl-electric-char
{ tcl-electric-char
} tcl-electric-brace
delete backward-delete-char-untabify
tab tcl-indent-command
C-c << Prefix Command >>
C-i tcl-indent-command
M-; tcl-indent-for-comment
M-backspace tcl-mark-defun
M-C-a tcl-beginning-of-defun
M-C-e tcl-end-of-defun
M-C-h tcl-mark-defun
M-C-q indent-tcl-exp
M-C-x tcl-eval-defun
C-c tab tcl-help-on-word
C-c C-b tcl-submit-bug-report
C-c C-c comment-region
C-c C-f tcl-load-file
C-c C-i tcl-help-on-word
C-c C-s switch-to-tcl
C-c C-t inferior-tcl
C-c C-v tcl-eval-defun
C-c C-x tcl-eval-region

To configure this package, type:

  M-x customize-group RET tcl RET

28.1 About Tcl  

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

28.1 About Tcl

Tcl (Tool Command Language) is used by over half a million developers worldwide and has become a critical component in thousands of corporations. It has a simple and programmable syntax and can be either used as a standalone application or embedded in application programs. Best of all, Tcl is open source so it's completely free.

Tk is a graphical user interface toolkit that makes it possible to create powerful GUIs incredibly quickly. It proved so popular that it now ships with all distributions of Tcl.

For more information, see http://www.tcl.tk/software/tcltk/.

[ << ] [ >> ]           [Top] [Contents] [Index] [ ? ]

This document was generated by XEmacs Webmaster on October, 2 2007 using texi2html