Re: [Rd] C basic indentation

2009-02-17 Thread Göran Broström
Prof Brian Ripley wrote: This seems a question for the ESS-help list. But you should be using Emacs customization these days: I have in my .emacs '(c-basic-offset 4) '(c-default-style "bsd") in custom-set-variables, and that is what the 'R Internals' manual says for Emacs >= 21. (You ca

Re: [Rd] C basic indentation

2009-02-17 Thread Prof Brian Ripley
This seems a question for the ESS-help list. But you should be using Emacs customization these days: I have in my .emacs '(c-basic-offset 4) '(c-default-style "bsd") in custom-set-variables, and that is what the 'R Internals' manual says for Emacs >= 21. (You can set that from the 'Custom

[Rd] C basic indentation

2009-02-17 Thread Göran Broström
I use the recommendations in "R coding standards", i.e., I put ;;; C (add-hook 'c-mode-hook (lambda () (c-set-style "bsd"))) ;;; ESS (add-hook 'ess-mode-hook (lambda () (ess-set-style 'C++ 'quiet) (add-hook 'local