help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: one key-press to comment out lines of code?


From: Andreas Röhler
Subject: Re: one key-press to comment out lines of code?
Date: Wed, 30 Apr 2014 19:38:13 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.4.0

On 30.04.2014 18:14, Sharon Kimble wrote:
Whilst I'm still learning emacs and gnus I'm constantly adding code to my
"setup-testbed.el" file, and then finding later that it doesn't do what its
expected to do, or I don't like the outcome, so I then comment it
out. Currently, I'm doing it laboriously by hand, but is it possible to
highlight it and then with one key-press insert ";" in front of each and every
line of the code please?

I haven't seen this ability anywhere, but being able to do it would make
things a whole lot easier for me, so, can it be done please folks?

Sharon.


Maybe try

ar-comment-or-uncomment-lor

Comment line or region, unless it's already commented:
uncomment then.

and available here:

https://launchpad.net/s-x-emacs-werkstatt

ar-comment-lor.el

While this saves  keystrokes and thus using this daily, nonetheless, as for 
Emacs beginners recommend to stay with shipped code.
Also WRT to region comment-dwim is preferable - the region needs to be marked 
than anyway, there is not that saving.

Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]