(fix)org-roam-with-file: ensure local variables are respected (#2033)

When visiting a file, ensure that local variables are respected.
This commit is contained in:
Jethro Kuan
2022-01-12 03:38:44 +08:00
committed by GitHub
parent 679ef6ef00
commit 8b43093d1a

View File

@ -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)))