I created a yasnippet
template to quickly timestamp a note I'd like to make in org-mode
. The body of the yasnippet
file reads
$0
:PROPERTIES:
:CREATED: `(org-insert-time-stamp nil t t)`
:END:
However, the effect is the CREATED
property being populated with double inactive timestamps, e.g., :CREATED: [2015-06-16 Tue 10:08][2015-06-16 Tue 10:08]
. Why is this behavior occurring, and how do I prevent the redundant timestamp?
References:
- Elisp - Avoid prompt in interactive function
- in org-mode, how to insert timestamp with today's date?
Note: Trying either one of the methods described in the reference links yields the same doubled timestamp result.
org-capture
, which provides for an option to insert at point: To insert the capture at point in an Org buffer, callorg-capture
with aC-0
prefix argument. gnu.org/software/emacs/manual/html_node/org/Using-capture.html You can create your own templates -- inserting the current date is a simple as addingCREATED: <%<%Y-%m-%d %a>>
for an active stamp . . . For templates, see: gnu.org/software/emacs/manual/html_node/org/… Be sure to read the doc-string fororg-capture-templates
. – lawlist Jun 16 '15 at 19:26