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>")))
|
(trans . "<span class=\"task-in-progress\">▣</span>")))
|
||||||
org-src-window-setup 'current-window)
|
org-src-window-setup 'current-window)
|
||||||
:config
|
:config
|
||||||
|
;; Load the markdown exporter
|
||||||
(require 'ox-md)
|
(require 'ox-md)
|
||||||
|
|
||||||
|
;; Make sure we have 'org-capture-templates` defined
|
||||||
(unless (boundp 'org-capture-templates)
|
(unless (boundp 'org-capture-templates)
|
||||||
(setq org-capture-templates nil))
|
(setq org-capture-templates nil))
|
||||||
|
|
||||||
|
;; Set up capture templates for blog posts and GT2 related notes
|
||||||
(add-to-list 'org-capture-templates
|
(add-to-list 'org-capture-templates
|
||||||
'("p" "Blog post"
|
'("p" "Blog post" entry
|
||||||
entry (file+olp+datetree (concat org-directory "blog.org"))
|
(file+olp+datetree (lambda () (concat org-directory "blog.org")))
|
||||||
"* %^{Title} :blog:\n :PROPERTIES:\n :on: %T\n :END:\n %i%?"))
|
"* %^{Title} :blog:\n :PROPERTIES:\n :on: %T\n :END:\n %i%?"))
|
||||||
(add-to-list 'org-capture-templates
|
(add-to-list 'org-capture-templates
|
||||||
'("g" "GT2 note"
|
'("g" "GT2 note" entry
|
||||||
entry (file+headline (concat org-directory "gt2-notes.org")
|
(file+headline (lambda () (concat org-directory "gt2-notes.org")) "Captures")
|
||||||
"Captures")
|
|
||||||
"** %^{Title}\n :PROPERTIES:\n :on: %T\n :END:\n %i%?"))
|
"** %^{Title}\n :PROPERTIES:\n :on: %T\n :END:\n %i%?"))
|
||||||
(add-hook 'ediff-select-hook 'f-ediff-org-unfold-tree-element)
|
(add-hook 'ediff-select-hook 'f-ediff-org-unfold-tree-element)
|
||||||
(add-hook 'ediff-unselect-hook 'f-ediff-org-fold-tree)
|
(add-hook 'ediff-unselect-hook 'f-ediff-org-fold-tree)
|
||||||
|
Loading…
Reference in New Issue
Block a user