Emacs: Comment, Uncomment

By Xah Lee. Date: . Last updated: .

to insert or delete programing language comment, do

Alt + x comment-lineCtrl + x Ctrl + ;
toggle comment on current line
Alt + x comment-dwim
toggle on region. [see Emacs: Select Text (mark and region)]

Emacs: Comment, Uncomment, Prefix Lines, Rectangle Edit


Emacs Tutorial

Quick Start

Font

Split Window

File

Buffer

Copy/Paste

Find Replace

Unicode

Whitespace

Rectangle Edit

Line Wrap

Shell

View Special File

Editing Brackets

Org Mode

HTML

Emacs Efficiency

Misc