branch: externals/denote commit 550428cabf3c57f2ea86507031c17d755b046e0c Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add sample org-capture-templates to Commentary --- denote-org-capture.el | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/denote-org-capture.el b/denote-org-capture.el index 25b81e4b57..182d01b55a 100644 --- a/denote-org-capture.el +++ b/denote-org-capture.el @@ -25,6 +25,27 @@ ;;; Commentary: ;; ;; Denote integration with org-capture. +;; +;; Samples of an `org-capture-templates' entry: +;; +;; (setq org-capture-templates +;; '(("n" "New note (with denote.el)" plain +;; (file denote-last-path) +;; #'denote-org-capture +;; :no-save t +;; :immediate-finish nil +;; :kill-buffer t +;; :jump-to-captured t))) +;; +;; (with-eval-after-load 'org-capture +;; (add-to-list 'org-capture-templates +;; '("n" "New note (with denote.el)" plain +;; (file denote-last-path) +;; #'denote-org-capture +;; :no-save t +;; :immediate-finish nil +;; :kill-buffer t +;; :jump-to-captured t))) ;;; Code: @@ -69,25 +90,5 @@ sample template. We will eventually have a manual." (add-hook 'org-capture-after-finalize-hook #'denote-org-capture-delete-empty-file) -;; Samples of an `org-capture-templates' entry: -;; -;; (setq org-capture-templates -;; '(("n" "New note (with denote.el)" plain -;; (file denote-last-path) -;; #'denote-org-capture -;; :no-save t -;; :immediate-finish nil -;; :kill-buffer t -;; :jump-to-captured t))) -;; -;; (with-eval-after-load 'org-capture -;; (add-to-list 'org-capture-templates -;; '("n" "New note (with denote.el)" plain -;; (file denote-last-path) -;; #'denote-org-capture -;; :no-save t -;; :immediate-finish nil -;; :kill-buffer t -;; :jump-to-captured t))) (provide 'denote-org-capture) ;;; denote-org-capture.el ends here