
Comment Commands (GNU Emacs Manual)
Comment or uncomment the current line (comment-line). If the region is active, comment or uncomment the lines in the region instead. Kill comment on current line (comment-kill). Set …
Options for Comments (GNU Emacs Manual)
When a comment command makes a new comment, it inserts the value of comment-start as an opening comment delimiter. It also inserts the value of comment-end after point, as a closing …
Is there a way to comment out a large chunk of code?
Jul 15, 2015 · You can mark at the beginning of the region that you want to comment out, move to the end of the region, then do C-c C-c or M-x comment-region.
Comments (GNU Emacs Manual)
Because comments are such an important part of programming, Emacs provides special commands for editing and inserting comments. It can also do spell checking on comments with …
26.5.1 Comment Commands - Emacs Docs
26.5.1 Comment Commands. The following commands operate on comments: M-; Insert or realign comment on current line; if the region is active, comment or uncomment the region …
26.5.3 Options Controlling Comments | Emacs Docs
When a comment command makes a new comment, it inserts the value of comment-start as an opening comment delimiter. It also inserts the value of comment-end after point, as a closing …
GNU Emacs Manual - Comment Commands
The comment commands insert, kill and align comments. M-; Insert or align comment (indent-for-comment). C-x ; Set comment column (set-comment-column). C-u - C-x ; Kill comment on …
EmacsWiki: Commenting Code
For example, in C, comment-start is /* and comment-end is */. The main command for commenting or uncommenting each of the lines in a region is comment-region. With prefix …
macros - a custom comment box on emacs - Stack Overflow
Jan 20, 2017 · newcomment has a function called comment-box, which produces a box comment consisting of the comment characters, i.e.: ##### # abc def # ##### or /*****/ /* abc def */ …
Multi-Line Comments (GNU Emacs Manual)
28.5.2 Multiple Lines of Comments. If you are typing a comment and wish to continue it to another line, type M-j or C-M-j (default-indent-new-line). This breaks the current line, and inserts the …
- Some results have been removed