X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2Fess_configuration.el;h=7335cd460c975f567968fadc809b5e30117fa0d0;hb=2831aa0332dab9a81448171e931a20aaf7015309;hp=c8d2f02f81ad1fbcf84340b87ff0166b94f5a9ba;hpb=a43277eb33b31b94710e983716b828e17f30c620;p=lib.git diff --git a/emacs_el/configuration/ess_configuration.el b/emacs_el/configuration/ess_configuration.el index c8d2f02..7335cd4 100644 --- a/emacs_el/configuration/ess_configuration.el +++ b/emacs_el/configuration/ess_configuration.el @@ -10,31 +10,3 @@ ; ess-noweb-code-mode ; ess-noweb-default-code-mode ; ess-noweb-last-chunk-index))) -(require 'ess-site) - -(defun ess-change-directory (path) - "Set the current working directory to PATH for both *R* and Emacs." - (interactive "DDirectory to change to: ") - - (when (file-exists-p path) - (ess-command (concat "setwd(\"" path "\")\n")) - ;; use file-name-as-directory to ensure it has trailing / - (setq default-directory (file-name-as-directory path)))) -(add-hook 'ess-mode-hook 'flyspell-prog-mode) -;;; outlining support for ess modes -(add-hook 'ess-mode-hook - '(lambda () - (outline-minor-mode) - (setq outline-regexp "\\(^#\\{4,5\\} \\)\\|\\(^[a-zA-Z0-9_\.]+ ?<- ?function\\)") - (defun outline-level () - (cond ((looking-at "^##### ") 1) - ((looking-at "^#### ") 2) - ((looking-at "^[a-zA-Z0-9_\.]+ ?<- ?function(.*{") 3) - (t 1000))) - )) -(add-hook 'ess-mode-hook - '(lambda () - (local-set-key (kbd "C-c C-R") - 'dla/ess-region-remote-eval))) - -(provide 'ess_configuration)