[ESS] Indentation level

Michael Hannon jm_hannon at yahoo.com
Tue May 11 03:18:20 CEST 2010


Somebody on the list sent me the following when I wanted to change my indentation level to 4:

(defun myindent-ess-hook ()
  (setq ess-indent-level 4))
(add-hook 'ess-mode-hook 'myindent-ess-hook)


-- Mike


----- Original Message ----
> From: David Scott <d.scott at auckland.ac.nz>
> To: "ess-help at stat.math.ethz.ch" <ess-help at stat.math.ethz.ch>
> Sent: Mon, May 10, 2010 5:45:55 PM
> Subject: [ESS] Indentation level
> 
> This should be simple, but I am having trouble. I want to set my indentation 
> level to 2.

Previous postings suggest:

(setq ess-indent-level 
> 2)

which I have tried without success.

David 
> Scoot
_________________________________________________________________
David 
> Scott    Department of Statistics
    
>     The University of Auckland, PB 92019
    
>     Auckland 1142,    NEW ZEALAND
Phone: +64 9 923 
> 5055, or +64 9 373 7599 ext 85055
Email:    
> ymailto="mailto:d.scott at auckland.ac.nz" 
> href="mailto:d.scott at auckland.ac.nz">d.scott at auckland.ac.nz,  Fax: +64 
> 9 373 7018

Director of Consulting, Department of 
> Statistics

______________________________________________

> ymailto="mailto:ESS-help at stat.math.ethz.ch" 
> href="mailto:ESS-help at stat.math.ethz.ch">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