Comment and uncomment regions

Rich Heiberger rmh at surfer.sbm.temple.edu
Thu Oct 10 06:52:36 CEST 2002


I assume TeX-comment-region puts "%" at the front of all lines and
that TeX-un-comment-region takes them away.  If it was coded correctly,
.they are based on the standard emacs command comment-region and
uncomment-region and use the comment-start variable.  Both work correctly
in .s files and use the "#" character.

So all we need to do is put them on a key.
(global-set-key "\C-c;"  'comment-region)
.(global-set-key "\C-c:"  'uncomment-region)

This puts   comment-region on C-c ;
and       uncomment-region on C-c :  (which is C-c S-;)

Your note said the AucTeX keys usually work with ESS.  When do they not?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list