Previous: , Up: Miscellaneous   [Contents][Index]


12.5 Special function keys

A number of “special function” keys are useful in Emacs in general and in REDUCE mode in particular, which are not directly accessible on all platforms. The following comments apply particularly to Microsoft Windows.

The standard key to terminate lines of indented code is LFD and the standard key to continue a comment is Meta-LFD, but LFD does not exist on a standard PC keyboard. Note that LFD can always be accessed via its ASCII code as C-j, or on some keyboards Control-RET generates LFD. In some situations, the keyboard can be re-programmed to provide this very convenient synonym, which is true of the better terminal emulators.

The standard key to complete a symbol is Meta-TAB, but Microsoft Windows uses this key combination for fast task switching.

When Emacs is able to read the keyboard directly, as when it is run under X or Microsoft Windows, LFD can be conveniently emulated as Control-RET and Meta-TAB as Control-TAB. A good way to generate these and similar emulations is to put the following code in your .emacs file:

(define-key function-key-map [(control return)] [?\C-J])
(define-key function-key-map [(control meta return)] [?\C-\M-J])
(define-key function-key-map [(control tab)] [?\M-\t])