Reference blog entry showing how to programmatically add Org notes
The current implementation of `db/org-update-headline-log-note` seems to be fine, but if it turns out to be broken, we can try the approach of Sacha Chua.
This commit is contained in:
parent
6c17b944e2
commit
fb60b22c5e
|
@ -1058,7 +1058,10 @@ cache if that's in use."
|
||||||
;; Update headline
|
;; Update headline
|
||||||
(org-edit-headline new-headline)
|
(org-edit-headline new-headline)
|
||||||
|
|
||||||
;; Store note manually (I tried using `org-add-log-note', but did not succeed …)
|
;; Store note manually (I tried using `org-add-log-note', but did not
|
||||||
|
;; succeed …); maybe use the logging function from
|
||||||
|
;; https://sachachua.com/blog/2022/11/logging-sent-messages-to-org-mode-with-message-sent-hook/
|
||||||
|
;; instead?
|
||||||
(goto-char (org-log-beginning 'create))
|
(goto-char (org-log-beginning 'create))
|
||||||
(indent-according-to-mode)
|
(indent-according-to-mode)
|
||||||
(insert "- Note taken on ")
|
(insert "- Note taken on ")
|
||||||
|
|
Loading…
Reference in New Issue