[ESS] reformat source code
Rainer M Krug
Rainer at krugs.de
Fri Jun 14 10:45:57 CEST 2013
Kasper Daniel Hansen <kasperdanielhansen at gmail.com> writes:
> If I have an .R file written using another editor, how do I re-indent it,
> following the ESS "rules".
Indentation:
1) Select the whole buffer (C-x h)
2) M-x indent-region or C-M-\
This should do it.
>
> Is there an easy way to replace = assignments with <-?
Other then M-% and to decide fir each, I don't think so?
Cheers,
Rainer
>
> Best,
> Kasper
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
<#secure method=pgpmime mode=sign>
--
Rainer M. Krug
email: RMKrug<at>gmail<dot>com
More information about the ESS-help
mailing list