Skip to content
Prev 77817 / 398502 Next

Indentation in R code

Seth Falcon <sfalcon at fhcrc.org> writes:
I have (I believe it stems from Martin M. originally):

(add-hook 'c-mode-hook '(lambda()
                          (c-set-style "stroustrup")))
(add-hook 'ess-mode-hook
      '(lambda()
         (if (or (string< ess-version "5.0")
                 (string= ess-version "5.0"))
             (ess-set-style 'C++)
           (ess-set-style 'C++ 'quiet))

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