mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
set-buffer instead of switch-to-buffer
This commit is contained in:
parent
a8f024cc6c
commit
3798823ad4
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue