Thursday, November 1, 2007

emacs commands

1. how to turn on syntax hylighting

M-X font-lock-mode

2. how to indent code?

C-M-\


3. how to comment out code in region? select region then
M-x comment-region
M-x uncomment-region

4. comment on line
M- ; (ie alt-; or esc then ;) creates a comment on the line
M-j then creates another comment line
remove comment on line ??



4. To move the cursor to a specific line:
M-x goto-line
when prompted in the minibuffer
Goto line:

No comments: