|
From: | No Wayman |
Subject: | [PATCH] Allow org-capture-mode-hook to access org-capture-current-plist [9.3.6 (release_9.3.6-443-g0e8aff @ /home/n/.emacs.d/straight/build/org/)] |
Date: | Sun, 03 May 2020 13:40:41 -0400 |
User-agent: | mu4e 1.3.9; emacs 28.0.50 |
I'm proposing the following trivial patch to bring more consistency to org-capture-mode's hooks. By setting org-capture-current-plist before invoking org-capture-mode in the capture buffer, users can access the same variable in org-capture-mode-hook as they would in org-capture-before-finalize-hook and org-capture-prepare-finalize-hook. org-capture-after-finalize-hook is the only outlier, but that makes sense as the capture buffer is no longer current when it runs.
~ Nicholas Vollmer
0001-Allow-org-capture-mode-hook-to-access-org-capture-cu.patch
Description: set-org-capture-current-plist-before-org-capture-mode-hook-run
[Prev in Thread] | Current Thread | [Next in Thread] |