You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thank you for your GTD tutorial, very pedagogic.
I am still learning to handle it and found that saving each time the different org files after refiling was breaking the workflow of the whole process.
Even though saving by hand is a way to make sure that you didn't make a mistake...
Here is how I have done to automatically save the files after refiling:
;; Automatically get the files in "~/Documents/org";; with fullpath
(setq org-agenda-files
(mapcar'file-truename
(file-expand-wildcards"~/Documents/org/*.org")))
;; Save the corresponding buffers
(defungtd-save-org-buffers ()
"Save `org-agenda-files' buffers without user confirmation.See also `org-save-all-org-buffers'"
(interactive)
(message"Saving org-agenda-files buffers...")
(save-some-bufferst (lambda ()
(when (member (buffer-file-name) org-agenda-files)
t)))
(message"Saving org-agenda-files buffers... done"))
;; Add it after refile
(advice-add'org-refile:after
(lambda (&rest_)
(gtd-save-org-buffers)))
The text was updated successfully, but these errors were encountered:
First of all thank you for your GTD tutorial, very pedagogic.
I am still learning to handle it and found that saving each time the different org files after refiling was breaking the workflow of the whole process.
Even though saving by hand is a way to make sure that you didn't make a mistake...
Here is how I have done to automatically save the files after refiling:
The text was updated successfully, but these errors were encountered: