diff options
author | jao <jao@gnu.org> | 2021-06-17 04:29:56 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-06-17 04:29:56 +0100 |
commit | 7a64e219709a9ae74855eeb37a0ccfccc3cc2060 (patch) | |
tree | 8fbac6633bf93229833c758561d1d6eb7730e8b1 | |
parent | 4a80bc3524c26084a31e773e07d5323554ab5736 (diff) | |
download | elibs-7a64e219709a9ae74855eeb37a0ccfccc3cc2060.tar.gz elibs-7a64e219709a9ae74855eeb37a0ccfccc3cc2060.tar.bz2 |
jao-org-notes: better capture template
-rw-r--r-- | lib/doc/jao-org-notes.el | 6 |
1 files changed, 3 insertions, 3 deletions
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)) |