mirror of
https://github.com/org-roam/org-roam
synced 2025-08-09 12:57:22 -05:00
(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:
@ -119,7 +119,8 @@ Kills the buffer if KEEP-BUF-P is nil, and FILE is not yet visited."
|
|||||||
(delay-mode-hooks
|
(delay-mode-hooks
|
||||||
(let ((org-inhibit-startup t)
|
(let ((org-inhibit-startup t)
|
||||||
(org-agenda-files nil))
|
(org-agenda-files nil))
|
||||||
(org-mode))))
|
(org-mode)
|
||||||
|
(hack-local-variables))))
|
||||||
(setq res (progn ,@body))
|
(setq res (progn ,@body))
|
||||||
(unless (and new-buf (not ,keep-buf-p))
|
(unless (and new-buf (not ,keep-buf-p))
|
||||||
(save-buffer)))
|
(save-buffer)))
|
||||||
|
Reference in New Issue
Block a user