[ESS] How to improve ESS syntax high-lighting and shortcuts

Frede Aakmann Tøgersen FredeA.Togersen at agrsci.dk
Fri Jun 22 08:28:00 CEST 2007


Ronaldo,
 
If M-x comment-region works and you can bound that to a key then
 
C-u M-x comment-region or M-x uncomment-region should work too and removes the commenting chars.
 
I have this in my .emacs (I don't know what the customizing init file is called for Xemacs or where it is put):
 
(define-key ess-mode-map "\C-c;" 'comment-region) 
(define-key ess-mode-map "\C-c:" 'uncomment-region)
 
 

________________________________

Fra: ess-help-bounces at stat.math.ethz.ch på vegne af Ronaldo Reis Junior
Sendt: to 21-06-2007 19:10
Til: ess-help at stat.math.ethz.ch
Emne: Re: [ESS] How to improve ESS syntax high-lighting and shortcuts



Em Quinta 21 Junho 2007 09:23, Frede Aakmann Tøgersen escreveu:
> Ronaldo, try "M-x transient-mark-mode <RETURN>".

Frede,

this (transient-mark-mode) dont exist in my XEmacs, probably this is a EMacs
command.

In XEmacs the command that work is M-x comment-region, but dont exist a
uncomment-region.

I try to use C-space C-space but dont make any new behaviour.

I think that the option is make a personnal keystroke, I make it do comment,
but I cant make the same for uncomment a comment region.

(define-key ess-mode-map "\C-d" 'comment-region)

Thanks
Inte
Ronaldo
--
Some assembly required.
--
> Prof. Ronaldo Reis Júnior
|  .''`. UNIMONTES/Depto. Biologia Geral/Lab. de Ecologia
| : :'  : Campus Universitário Prof. Darcy Ribeiro, Vila Mauricéia
| `. `'` CP: 126, CEP: 39401-089, Montes Claros - MG - Brasil
|   `- Fone: (38) 3229-8187 | ronaldo.reis at unimontes.br | chrysopa at gmail.com
| http://www.ppgcb.unimontes.br/ | ICQ#: 5692561 | LinuxUser#: 205366

______________________________________________
ESS-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help




More information about the ESS-help mailing list