change indent

Kasper Daniel Hansen k.hansen at biostat.ku.dk
Wed Oct 6 18:01:29 CEST 2004


And of course you know the paradigm of #:
  # indents to the far right
  ## indents to the "current indentation"
  ### indents to the far left.

Kasper


On Wed, Oct 06, 2004 at 11:48:14AM +0100, Stephen Eglen wrote:
>  > How can I modify the indent of R-code?
>  > 
>  > At the moment comments starting with # are aligned on column 40, but I 
>  > like 50 or 60...
> 
> 
> hi, good questions... this isn't straightforward from what I see.
> 
> (add-hook 'ess-mode-hook '(lambda () (setq comment-column 60)))
> 
> put the above in .emacs and this should work.  But maybe the better
> solution might be to allow S-editing-alist to be customizable ...
> 
>  > Moreover the indent of 2 spaces on each lower level of loops etc. is 
>  > too less for me too. I like 4 or even 8.
> Try 
> 
> (setq ess-indent-level 4)
> 
> All this needs better documentation!
> 
> Stephen
> 
> ______________________________________________
> ESS-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

-- 
Kasper Daniel Hansen, Research Assistant
Department of Biostatistics, University of Copenhagen




More information about the ESS-help mailing list