May 13th 2026 - Interesting Finds

How to run code after org capture is saved

We can run code after an org capture is saved by using :after-finalize:

(setq org-capture-templates
      '(
        ("j" "Journal" plain (file "~/org/journal.org")
         "** %^{Entry}"
         :after-finalize (lambda () (unless org-note-abort (my/backup-journal-file))))

        ("c" "Calendar" entry (file "~/org/calendar.org")
         "* %^{Description}\n%^t"
         :after-finalize (lambda () (unless org-note-abort (my/backup-calendar-file))))))

Note the check for org-note-abort. If this is set to nil then the capture was saved successfully.

EWW

You can run code snippets from a website on Emacs EWW with eval-region or eval-last-sexp.