From 7a64e219709a9ae74855eeb37a0ccfccc3cc2060 Mon Sep 17 00:00:00 2001
From: jao <jao@gnu.org>
Date: Thu, 17 Jun 2021 04:29:56 +0100
Subject: jao-org-notes: better capture template

---
 lib/doc/jao-org-notes.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'lib/doc')

diff --git a/lib/doc/jao-org-notes.el b/lib/doc/jao-org-notes.el
index 9caec57..c690ae2 100644
--- a/lib/doc/jao-org-notes.el
+++ b/lib/doc/jao-org-notes.el
@@ -89,6 +89,7 @@
 (defvar jao-org-notes--tags nil)
 
 (defun jao-org-notes--update-tags ()
+  (message "Updating tags cache...")
   (setq jao-org-notes--tags
         (org-global-tags-completion-table
          (directory-files-recursively jao-org-notes-dir ".*\\.org"))))
@@ -107,7 +108,7 @@
 
 (defun jao-org-notes--template (k)
   `(,k "Note" plain (file jao-org-notes-open-or-create)
-       "\n- %A %c"
+       "\n- %a"
        :jump-to-captured t))
 
 ;;;###autoload
@@ -124,8 +125,7 @@
   (when (jao-org-notes--insert-title)
     (jao-org-notes--insert-date)
     (jao-org-notes--insert-tags)
-    (jao-org-notes--update-tags)
-    (insert "#+link: "))
+    (jao-org-notes--update-tags))
   (save-buffer)
   (buffer-file-name))
 
-- 
cgit v1.2.3