ess-indent-level and friends

Douglas Bates bates at stat.wisc.edu
Wed Mar 29 21:08:47 CEST 2000


I'm running ess-5.1.13.

I have the following code (probably originally from Martin Maechler)
in my ~/.emacs file

(setq ess-mode-hook
      '(lambda()
	 (if (string<= ess-version "5.0")
	     (ess-set-style 'C++)
	   (ess-set-style 'C++ 'quiet))
	 ;; Because
	 ;;					DEF GNU BSD K&R C++
	 ;; ess-indent-level			2   2	8   5	4
	 ;; ess-continued-statement-offset	2   2	8   5	4
	 ;; ess-brace-offset			0   0	-8  -5	-4
	 ;; ess-arg-function-offset		2   4	0   0	0
	 ;; ess-expression-offset		4   2	8   5	4
	 ;; ess-else-offset			0   0	0   0	0
	 ;; ess-close-brace-offset		0   0	0   0	0

	 (add-hook 'local-write-file-hooks
		   '(lambda()
		      (nuke-trailing-whitespace)
		      ))
	 ))

It does not appear that this has any effect.  If I check after M-x R
or after loading a file with a .R extension, I still have an ess-style
of DEFAULT.  In particular, I want the variable ess-indent-level to be
4, not 2.  

Can anyone suggest what I should change?
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list