summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-ess.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/init-ess.el b/lisp/init-ess.el
index bf884f6..23dc3ba 100644
--- a/lisp/init-ess.el
+++ b/lisp/init-ess.el
@@ -31,6 +31,11 @@
(setq local-abbrev-table ess-mode-abbrev-table)))
(add-hook hook 'abbrev-mode))
+(defun km/ess-eval-buffer-up-to-line ()
+ "Send up to the current line to inferior ESS process."
+ (interactive)
+ (ess-eval-region (point-min) (line-end-position) nil))
+
(defvar km/ess-dplry-pipe-key "|")
(defun km/ess-insert-dplyr-pipe ()
@@ -43,6 +48,7 @@ this would work, but it seems to so far."
(call-interactively #'ess-smart-S-assign)))
(after 'ess-mode
+ (define-key ess-mode-map (kbd "C-c C-.") 'km/ess-eval-buffer-up-to-line)
(define-key ess-mode-map "|" 'km/ess-insert-dplyr-pipe))
(after 'ess-inf