Handle org-protocol:// links

This commit is contained in:
Gergely Polonkai 2019-02-19 14:06:29 +01:00
parent 1f03365d28
commit 74922ec587
1 changed files with 8 additions and 0 deletions

View File

@ -2667,6 +2667,9 @@ This is a big one; I use a lot of customisation here.
(unless (boundp 'org-capture-templates)
(setq org-capture-templates nil))
;; Handle org-protocol:// links
(require 'org-protocol)
;; Set up capture templates for blog posts and GT2 related notes
(add-to-list 'org-capture-templates
'("p" "Blog post" entry
@ -2693,6 +2696,11 @@ This is a big one; I use a lot of customisation here.
"%i"
:immediate-finish t
:empty-lines 1))
(add-to-list 'org-capture-templates
'("L" "Org-protocol capture" entry
(file+headline (lambda () (expand-file-name "index.org" org-directory)) "Captures")
"** %:description\n:PROPERTIES:\n:SOURCE: %:link\n:END:\n\n%:initial"
:empty-lines 1))
:hook
(ediff-select . f-ediff-org-unfold-tree-element)
(ediff-unselect . f-ediff-org-fold-tree)