]> git.donarmstrong.com Git - lib.git/commitdiff
autoload ess-site and R mode
authorDon Armstrong <don@donarmstrong.com>
Thu, 25 Jan 2018 22:57:59 +0000 (14:57 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 25 Jan 2018 22:57:59 +0000 (14:57 -0800)
emacs_el/configuration/don-configuration.org

index 25012bd3d7e4634966d00c9fa7f89b6767683ffb..a685de62904450575da6adbde2de232c9021624b 100644 (file)
@@ -919,7 +919,12 @@ This can be used to link things pretty quickly if necessary
     :mode ("\\.R\\'" . ess-r-mode)
     :bind (:map ess-mode-map
                 ("C-c C-R" . dla/ess-region-remote-eval))
+    :init
+    (autoload 'ess-r-mode "ess-site" nil t)
+    (autoload 'R "ess-site" nil t)
     :config
+    ; actually load the rest of ess
+    (require 'ess-site)
     (defun ess-change-directory (path)
       "Set the current working directory to PATH for both *R* and Emacs."
       (interactive "Directory to change to: ")