[R-SIG-Mac] emacs to edit .R files: hash (#)
A.J. Rossini
blindglobe at gmail.com
Tue Jul 26 18:15:58 CEST 2005
You probably want it to do "##", which is "indent to current indentation"
("#" is "indent to the right side")
("###" is "indent flush left")
But maybe you don't.
best,-
tony
On 7/26/05, Federico Calboli <f.calboli at imperial.ac.uk> wrote:
> Hi All,
>
> I suspect this only tangentially related to R-mac, but those that are
> using emacs to write/edit R code could find the following useful.
>
> If you are using a UK keyboard layout and have remapped the standard
> emacs keybindings so you can use the standard OSX ones to manipulate
> text you are likely to have lost the <alt> <3> key sequence to
> produce the comment symbol #.
>
> To remap it to F5 I used the following lisp:
>
> (global-set-key [f5] '(lambda() (interactive) (insert-string "#")))
>
> in my .emacs file, and now I can carry on using emacs to tinker with
> my R source code.
>
> Regards,
>
> Federico Calboli
>
> --
> Federico C. F. Calboli
> Department of Epidemiology and Public Health
> Imperial College, St. Mary's Campus
> Norfolk Place, London W2 1PG
>
> Tel +44 (0)20 75941602 Fax +44 (0)20 75943193
>
> f.calboli [.a.t] imperial.ac.uk
> f.calboli [.a.t] gmail.com
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
--
best,
-tony
"Commit early,commit often, and commit in a repository from which we can easily
roll-back your mistakes" (AJR, 4Jan05).
A.J. Rossini
blindglobe at gmail.com
More information about the R-SIG-Mac
mailing list