Next: , Up: Editing Programs   [Index]


J.1.1 Programming Major Modes

Program Indent

In most programming languages, indentation should vary from line to line to illustrate the structure of the program. Therefore, in most programming language modes, typing ‘<TAB>’ updates the indentation of the current line.

Delete

Furthermore, ‘<DEL>’ is usually bound to ‘backward-delete-char-untabify’, which deletes backward treating each tab as if it were the equivalent number of spaces, so that you can delete one column of indentation without worrying whether the whitespace consists of spaces or tabs.

prog-mode-hook

Entering a programming language mode runs the custom Lisp functions specified in the hook variable ‘prog-mode-hook’, followed by those specified in the mode’s own mode hook.