Sunday, April 09, 2006

emacs comment commands

[coolcode linenum="off"]M-; insert comment after current line

C-u M-; kill comment on current line

C-c comment multi-lines (mark first)

C-u C-c kill mulit-line comments

C-M-j add comment on new line [return] [/coolcode]

link: (emacs)Comment Commands


In matlab-mode, after highlight the region:


[coolcode linenum="off"] C-c; add comments

C-c: remove comments [/coolcode]

No comments:

Post a Comment