diff --git a/lisp/org-config/my-org-weekly-review.el b/lisp/org-config/my-org-weekly-review.el index 6d73534..98b64ac 100644 --- a/lisp/org-config/my-org-weekly-review.el +++ b/lisp/org-config/my-org-weekly-review.el @@ -29,7 +29,7 @@ (let ((string "") match) (save-window-excursion - (switch-to-buffer (find-file-noselect "~/MEGA/org/entries/journal.gpg")) + (set-buffer (find-file-noselect (my/org-file "gpg/journal.gpg"))) (goto-char (point-min)) (while (setq match (re-search-forward diff --git a/lisp/org-config/org-capture-notes.el b/lisp/org-config/org-capture-notes.el index 266fff3..489d4eb 100644 --- a/lisp/org-config/org-capture-notes.el +++ b/lisp/org-config/org-capture-notes.el @@ -32,7 +32,7 @@ (not org-notes-current-file)) (setq org-notes-current-file (read-file-name "Notes file? "))) - (find-file org-notes-current-file) + (set-buffer (find-file-noselect org-notes-current-file)) (end-of-buffer)) (provide 'org-capture-notes)