idlwave-mode
idlwave-mode is an interactive autoloaded compiled Lisp function in `idlwave.el
'.
(idlwave-mode)
Parent mode: `prog-mode'.
Major mode for editing IDL source files (version 6.1_em22).
The main features of this mode are
1. Indentation and Formatting
--------------------------
Like other Emacs programming modes, C-j inserts a newline and indents.
TAB is used for explicit indentation of the current line.
To start a continuation line, use M-x idlwave-split-line. This
function can also be used in the middle of a line to split the line
at that point. When used inside a long constant string, the string
is split at that point with the `+' concatenation operator.
Comments are indented as follows:
`;;;' Indentation remains unchanged.
`;;' Indent like the surrounding code
`;' Indent to a minimum column.
The indentation of comments starting in column 0 is never changed.
Use M-x idlwave-fill-paragraph to refill a paragraph inside a
comment. The indentation of the second line of the paragraph
relative to the first will be retained. Use
M-x idlwave-auto-fill-mode to toggle auto-fill mode for these
comments. When the variable `idlwave-fill-comment-line-only' is
nil, code can also be auto-filled and auto-indented.
To convert pre-existing IDL code to your formatting style, mark the
entire buffer with C-x h and execute
M-x idlwave-expand-region-abbrevs. Then mark the entire buffer
again followed by C-M-\ (`indent-region').
2. Routine Info
------------
IDLWAVE displays information about the calling sequence and the
accepted keyword parameters of a procedure or function with
M-x idlwave-routine-info. M-x idlwave-find-module jumps to the
source file of a module. These commands know about system
routines, all routines in idlwave-mode buffers and (when the
idlwave-shell is active) about all modules currently compiled under
this shell. It also makes use of pre-compiled or custom-scanned
user and library catalogs many popular libraries ship with by
default. Use M-x idlwave-update-routine-info to update this
information, which is also used for completion (see item 4).
3. Online IDL Help
---------------
M-x idlwave-context-help displays the IDL documentation relevant
for the system variable, keyword, or routines at point. A single
key stroke gets you directly to the right place in the docs. See
the manual to configure where and how the HTML help is displayed.
4. Completion
----------
M-x idlwave-complete completes the names of procedures, functions
class names, keyword parameters, system variables and tags, class
tags, structure tags, filenames and much more. It is context
sensitive and figures out what is expected at point. Lower case
strings are completed in lower case, other strings in mixed or
upper case.
5. Code Templates and Abbreviations
--------------------------------
Many Abbreviations are predefined to expand to code fragments and templates.
The abbreviations start generally with a `\`. Some examples:
\pr PROCEDURE template
\fu FUNCTION template
\c CASE statement template
\sw SWITCH statement template
\f FOR loop template
\r REPEAT Loop template
\w WHILE loop template
\i IF statement template
\elif IF-ELSE statement template
\b BEGIN
For a full list, use M-x idlwave-list-abbrevs. Some templates also
have direct keybindings - see the list of keybindings below.
M-x idlwave-doc-header inserts a documentation header at the
beginning of the current program unit (pro, function or main).
Change log entries can be added to the current program unit with
M-x idlwave-doc-modification.
6. Automatic Case Conversion
-------------------------
The case of reserved words and some abbrevs is controlled by
`idlwave-reserved-word-upcase' and `idlwave-abbrev-change-case'.
7. Automatic END completion
------------------------
If the variable `idlwave-expand-generic-end' is non-nil, each END typed
will be converted to the specific version, like ENDIF, ENDFOR, etc.
8. Hooks
-----
Loading idlwave.el runs `idlwave-load-hook'.
Turning on `idlwave-mode' runs `idlwave-mode-hook'.
9. Documentation and Customization
-------------------------------
Info documentation for this package is available. Use
M-x idlwave-info to display (complain to your sysadmin if that does
not work). For Postscript, PDF, and HTML versions of the
documentation, check IDLWAVE's homepage at URL
`http://github.com/jdtsmith/idlwave'.
IDLWAVE has customize support - see the group `idlwave'.
10.Keybindings
-----------
Here is a list of all keybindings of this mode.
If some of the key bindings below show with ??, use C-h k
followed by the key sequence to see what the key sequence does.
key binding
--- -------
C-c Prefix Command
C-g idlwave-keyboard-quit
ESC Prefix Command
" idlwave-show-matching-quote
& ??
' idlwave-show-matching-quote
, ??
< ??
= ??
> ??
<C-tab> idlwave-hard-tab
<M-tab> idlwave-complete
<S-iso-lefttab> idlwave-indent-statement
<S-mouse-3> idlwave-mouse-context-help
C-M-a idlwave-beginning-of-subprogram
C-M-d idlwave-down-block
C-M-e idlwave-end-of-subprogram
C-M-h idlwave-mark-subprogram
C-M-i idlwave-complete
M-RET idlwave-split-line
C-M-n idlwave-forward-block
C-M-p idlwave-backward-block
C-M-q idlwave-indent-subprogram
C-M-u idlwave-backward-up-block
M-? idlwave-context-help
M-q idlwave-fill-paragraph
M-s idlwave-edit-in-idlde
C-M-? idlwave-help-assistant-help-with-topic
C-c C-a idlwave-auto-fill-mode
C-c C-b idlwave-list-buffer-load-path-shadows
C-c C-c idlwave-case
C-c C-d idlwave-debug-map
C-c C-f idlwave-for
C-c C-h idlwave-doc-header
C-c TAB idlwave-update-routine-info
C-c C-k idlwave-kill-autoloaded-buffers
C-c C-l idlwave-shell-recenter-shell-window
C-c RET idlwave-doc-modification
C-c C-n idlwave-next-statement
C-c C-p idlwave-previous-statement
C-c C-r idlwave-repeat
C-c C-s idlwave-shell
C-c C-t idlwave-find-module-this-file
C-c C-v idlwave-find-module
C-c C-w idlwave-while
C-c SPC idlwave-hard-tab
C-c ; idlwave-toggle-comment-region
C-c = idlwave-resolve
C-c ? idlwave-routine-info
C-c ] idlwave-close-block
C-c { idlwave-beginning-of-block
C-c } idlwave-end-of-block
C-c C-d C-b idlwave-shell-break-here
C-c C-d C-c idlwave-shell-save-and-run
C-c C-d C-e idlwave-shell-run-region