lang/ess: fix repl & doc lookup in ESS R/Julia

Also moves history files into doom-cache-dir
This commit is contained in:
Henrik Lissner 2019-02-15 19:38:49 -05:00
parent 33ef90343e
commit a246a90565
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 17 additions and 11 deletions

View file

@ -1,7 +1,11 @@
;;; lang/ess/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +ess/r-repl ()
"Open the R REPL."
(interactive)
(inferior-ess nil nil t))
(defun +ess-repl-buffer (&optional start-args)
"Returns an R/Julia REPL buffer."
(interactive "P")
(pcase major-mode
('ess-r-mode (run-ess-r start-args))
((or 'julia-mode 'ess-julia-mode) (run-julia start-args))
(_ (inferior-ess nil nil t)))
(current-buffer))