Skip to content
Prev 32151 / 398506 Next

R indentation

On Sat, 17 May 2003, G?ran Brostr?m wrote:

            
;;;-- Implement "R core indentation style"--------------------------------
(setq ess-mode-hook
      '(lambda()
	 (ess-set-style 'C++ 'quiet)

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

(add-hook 'perl-mode-hook
	  '(lambda() (setq perl-indent-level 4)))

works for me, *provided* I have set (via customization)

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(c-basic-offset 4)
 '(c-default-style "bsd"))