From 11eea640abfa2d0429f16667586735648fae4875 Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Wed, 13 Apr 2022 17:25:02 -0400 Subject: [PATCH] FIX R startup dir --- etc/conf.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/conf.org b/etc/conf.org index 1f73639..829ec03 100644 --- a/etc/conf.org +++ b/etc/conf.org @@ -978,7 +978,9 @@ Oh yes, and to get linting to work, also install r-lintr in the conda environmen (setq inferior-R-program "R" inferior-R-args "--quiet --no-save" ess-history-file "session.Rhistory" - ess-history-directory (substitute-in-file-name "${XDG_CONFIG_HOME}/r/")))) + ess-history-directory (substitute-in-file-name "${XDG_CONFIG_HOME}/r/") + ;; always start from the current file + ess-startup-directory 'default-directory))) ;; ;; fast compile ;; (defun nd/ess-r-add-env (orig-fun inf-buf proc-name start-args)