From 8b43093d1a043e2e5b0bfa75a45a935976294e18 Mon Sep 17 00:00:00 2001 From: Jethro Kuan Date: Wed, 12 Jan 2022 03:38:44 +0800 Subject: [PATCH] (fix)org-roam-with-file: ensure local variables are respected (#2033) When visiting a file, ensure that local variables are respected. --- org-roam-utils.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org-roam-utils.el b/org-roam-utils.el index ec0999b..ff15331 100644 --- a/org-roam-utils.el +++ b/org-roam-utils.el @@ -119,7 +119,8 @@ Kills the buffer if KEEP-BUF-P is nil, and FILE is not yet visited." (delay-mode-hooks (let ((org-inhibit-startup t) (org-agenda-files nil)) - (org-mode)))) + (org-mode) + (hack-local-variables)))) (setq res (progn ,@body)) (unless (and new-buf (not ,keep-buf-p)) (save-buffer)))