X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=emacs_el%2Fconfiguration%2Fdon-configuration.org;h=e432840f43802492526da32f0f2a629649b0b77f;hb=f421fa664d75a3b2661d970c9fb5738bd30a4bae;hp=a5a1035b2d1ed4f98c80f9c16d806efc4e4bbf84;hpb=9493be6e00c0b940d31eb74ac08e459bbf189e07;p=lib.git diff --git a/emacs_el/configuration/don-configuration.org b/emacs_el/configuration/don-configuration.org index a5a1035..e432840 100644 --- a/emacs_el/configuration/don-configuration.org +++ b/emacs_el/configuration/don-configuration.org @@ -868,6 +868,10 @@ This can be used to link things pretty quickly if necessary #+BEGIN_SRC emacs-lisp (use-package ess :ensure t + :commands R + :mode "\\.R\\'" + :bind (:map ess-mode-map + ("C-c C-R" . dla/ess-region-remote-eval)) :config (defun ess-change-directory (path) "Set the current working directory to PATH for both *R* and Emacs." @@ -890,11 +894,11 @@ This can be used to link things pretty quickly if necessary ((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))) - + (defun dla/ess-region-remote-eval (start end) + "Evaluate region in a remote ESS instance" + (interactive "r") + (shell-command-on-region start end "eval_r" (get-buffer-create "***essregionremoteeval***")) + kill-buffer "***essregionremoteeval***") ;; Don't restore history or save workspace image '(inferior-R-args "--no-restore-history --no-save") ) @@ -965,10 +969,10 @@ From http://julien.danjou.info/projects/emacs-packages#rainbow-mode, this colori [[https://github.com/magnars/multiple-cursors.el][Multiple Cursors]] #+BEGIN_SRC emacs-lisp (use-package multiple-cursors - :bind (("C-;" . mc/mark-all-dwim) - ("C-<" . mc/mark-previous-like-this) - ("C->" . mc/mark-next-like-this) - ("C-S-c C-S-c" . mc/edit-lines)) + :bind* (("C-;" . mc/mark-all-dwim) + ("C-<" . mc/mark-previous-like-this) + ("C->" . mc/mark-next-like-this) + ("C-S-c C-S-c" . mc/edit-lines)) ) #+END_SRC ** Web Mode