Fix the Org capture template definitions
This commit is contained in:
parent
164dd2edae
commit
f52461117e
@ -2404,17 +2404,21 @@ This is a big one; I use a lot of customisation here.
|
||||
(trans . "<span class=\"task-in-progress\">▣</span>")))
|
||||
org-src-window-setup 'current-window)
|
||||
:config
|
||||
;; Load the markdown exporter
|
||||
(require 'ox-md)
|
||||
|
||||
;; Make sure we have 'org-capture-templates` defined
|
||||
(unless (boundp 'org-capture-templates)
|
||||
(setq org-capture-templates nil))
|
||||
|
||||
;; Set up capture templates for blog posts and GT2 related notes
|
||||
(add-to-list 'org-capture-templates
|
||||
'("p" "Blog post"
|
||||
entry (file+olp+datetree (concat org-directory "blog.org"))
|
||||
'("p" "Blog post" entry
|
||||
(file+olp+datetree (lambda () (concat org-directory "blog.org")))
|
||||
"* %^{Title} :blog:\n :PROPERTIES:\n :on: %T\n :END:\n %i%?"))
|
||||
(add-to-list 'org-capture-templates
|
||||
'("g" "GT2 note"
|
||||
entry (file+headline (concat org-directory "gt2-notes.org")
|
||||
"Captures")
|
||||
'("g" "GT2 note" entry
|
||||
(file+headline (lambda () (concat org-directory "gt2-notes.org")) "Captures")
|
||||
"** %^{Title}\n :PROPERTIES:\n :on: %T\n :END:\n %i%?"))
|
||||
(add-hook 'ediff-select-hook 'f-ediff-org-unfold-tree-element)
|
||||
(add-hook 'ediff-unselect-hook 'f-ediff-org-fold-tree)
|
||||
|
Loading…
Reference in New Issue
Block a user