Emacs can be a powerful terminal emulator for windows and a outstanding replacement for cmd. In each case, emacs places point after the comments starting delimiter, so that you can start typing the comment text right away. Then follow the windows installation instruction that appear until finished. But then my emacsfu is not strong so i may be wrong on that. When the commands in this section add comment delimiters, they use either line. If nil, comment region does not comment out empty lines. Move to the end of the block you want to indent and set the mark by pressing cspc. It was easy to write, and elisp is so straightforward, it was just quick and fun. The thing is, it works fine for me in every mode using mx commentoruncommentregion. To specify the text for such a command to operate on, you set the mark at one end of it, and move point to the other end. This is a standard emacs command, but cc mode enhances it a bit with two. Cu n mx commentregion, where n is an integer, adds or removes.
If a line already contains the comment start string, m. So, in emacs lisp code, where the comment string is commentregion adds a single cu n mx commentregion, where n is an integer, adds or removes n for example. Many emacs commands operate on an arbitrary contiguous part of the current buffer. With prefix argument, this command adds that many comment strings. The text between point and the mark is called the region. When i type mx commentregion or mx uncommentregion the desired. How to uncomment blocks code in emacs stack overflow. If eol it only comments out empty lines if comments are terminated by the end of line i. I am using emacs with the major mode javal abbrev activated. As mentioned in comment commands, when the mj command adds a comment to a line, it tries to place the comment between the columns specified by the bufferlocal variables comment column and comment fillcolumn or if that is nil, then the value of fillcolumn, see fill commands. The main command for commenting or uncommenting each of the lines in a region is commentregion. This step is unnecessary in version 20 and all subsequent versions of emacs.
Since emacs 21, theres been a module named newcomment, which has different comment styles see the variable commentstyles. But then my emacs fu is not strong so i may be wrong on that. As mentioned in comment commands, when the mj command adds a comment. So, in emacs lisp code, where the comment string is. You can set either the local value or the default value of these bufferlocal. If nil, commentregion does not comment out empty lines. The region always extends between point and the mark, no matter which one comes earlier in the text. Point is after that string, so you can insert the text of the comment right away. Let me preface this by saying i was sent here by rlearnprogramming and rpython, who told me that there would be people in this sub who could help me with my question. If you have comments or corrections, please let me know. Cx grow buffer taller mx shrinkwindow shrink window shorter cx shrink. If you are typing a comment and wish to continue it to another line, type mj or cmj commentindent.