From 026ba51c42a71737722d9635e291928c9e886335 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 18 Mar 2018 02:39:09 -0400 Subject: [PATCH] tools/term: ensure terms are opened in the correct directory --- modules/tools/term/autoload.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tools/term/autoload.el b/modules/tools/term/autoload.el index 25125e906..34ae5a5e1 100644 --- a/modules/tools/term/autoload.el +++ b/modules/tools/term/autoload.el @@ -5,7 +5,7 @@ "Open a terminal buffer in the current window. If PROJECT-ROOT (C-u) is non-nil, cd into the current project's root." (interactive "P") - (let ((default-directory (if project-root (doom-project-root) default-directory))) + (let ((default-directory (if project-root (doom-project-root 'nocache) default-directory))) (call-interactively #'multi-term))) ;;;###autoload @@ -14,7 +14,7 @@ non-nil, cd into the current project's root." current project's root." (interactive "P") (require 'multi-term) - (let ((default-directory (if project-root (doom-project-root) default-directory)) + (let ((default-directory (if project-root (doom-project-root 'nocache) default-directory)) (buffer (multi-term-get-buffer current-prefix-arg))) (pop-to-buffer buffer) (setq multi-term-buffer-list (nconc multi-term-buffer-list (list buffer)))