Add org-capture template for DW posts
This commit is contained in:
parent
759c011e98
commit
b45ed7449e
1 changed files with 12 additions and 0 deletions
|
@ -43,6 +43,14 @@
|
|||
(insert "* places\n** visited"))
|
||||
(insert "\n** visited"))))
|
||||
|
||||
(defun finddw ()
|
||||
"Find or create heading for DW posts"
|
||||
(goto-char (point-min))
|
||||
(if (not (search-forward "* dw" nil t))
|
||||
(progn
|
||||
(goto-char (point-max))
|
||||
(insert "* dw"))))
|
||||
|
||||
(defun therating ()
|
||||
"Rate some media"
|
||||
(setq therating nil)
|
||||
|
@ -80,6 +88,10 @@
|
|||
(file+function "" findread)
|
||||
"* %^{Author} /%^{Title}/%(therating)"
|
||||
:jump-to-captured t)
|
||||
("d" "DW post" entry
|
||||
(file+function "" finddw)
|
||||
"* %^{Title}\n%?"
|
||||
:jump-to-captured t)
|
||||
("f" "Watched film" entry
|
||||
(file+function "" findwatched)
|
||||
"* %^{Title} (%^{Year})%(therating)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue