   ;; R --------------------------------------------------------------------------
   (eval-after-load "ess-site"
     '(progn
+       (add-to-list 'auto-mode-alist '("\\.R$" . R-mode))
+       ;; Follow Hadley Wickham's R style guide
+       (setq ess-first-continued-statement-offset 2
+             ess-continued-statement-offset 0
+             ess-expression-offset 2
+             ess-nuke-trailing-whitespace-p t
+             ess-default-style 'DEFAULT)
        (evil-leader/set-key-for-mode 'ess-mode
          "mi" 'R
          ;; noweb

    ess
    ess-R-data-view
    ess-R-object-popup
    ess-smart-underscore
    )
  "List of all packages to install and/or initialize. Built-in packages
which require an initialization must be listed explicitly in the list.")

  (defun load-ess-on-demand ()
    (interactive)
    (use-package ess-site)
    (use-package ess-smart-equals)
    (use-package ess-R-object-popup)
    (use-package ess-R-data-view)
    )
