(add-hook 'tex-mode-hook 'turn-on-font-lock) (global-font-lock-mode t) ; automatically get the correct mode auto-mode-alist (append (list '("\\.c$" . c-mode) '("\\.tex$" . latex-mode) '("\\.S$" . S-mode) '("\\.s$" . S-mode) '("\\.R$" . R-mode) '("\\.r$" . R-mode) '("\\.html$" . html-mode) '("\\.emacs" . emacs-lisp-mode) ) auto-mode-alist) ; comment out the following if you are not using R/S-Plus on ACPUB ; add a ";" in front of each line (load "/usr/pkg/ess/lisp/ess-site") ;(autoload 'S "S" "Run an inferior S process" t) ;(autoload 'S-mode' "S" "Mode for editing S source" t) (require 'ess-site) (setq-default inferior-S+6-program-name "Splus") (setq-default inferior-R-program-name "R")