branch: externals/denote
commit 110271dc5a05e26aa6f532e599a073c255146eee
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Register 'denote-files' Org dynamic block
    
    This makes it available as a completion candidate when using the
    command 'org-dynamic-block-insert-dblock'.
---
 denote-org-dblock.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/denote-org-dblock.el b/denote-org-dblock.el
index d16f667987..473f97da99 100644
--- a/denote-org-dblock.el
+++ b/denote-org-dblock.el
@@ -233,6 +233,8 @@ as a typographic list."
                            :add-links nil))
   (org-update-dblock))
 
+(org-dynamic-block-define "denote-files" 'denote-org-dblock-insert-files)
+
 (defun org-dblock-write:denote-files (params)
   "Function to update `denote-files' Org Dynamic blocks.
 Used by `org-dblock-update' with PARAMS provided by the dynamic block."

Reply via email to