From 2205e58874e049ad6bdddf52a32ad60ab15b0e33 Mon Sep 17 00:00:00 2001 From: jowj Date: Mon, 28 Oct 2019 20:30:26 -0500 Subject: [PATCH] Add two new templates for the org-protocol integration --- applicationConfiguration/.emacs/jlj-org.el | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/applicationConfiguration/.emacs/jlj-org.el b/applicationConfiguration/.emacs/jlj-org.el index cf6997c..d757268 100644 --- a/applicationConfiguration/.emacs/jlj-org.el +++ b/applicationConfiguration/.emacs/jlj-org.el @@ -52,12 +52,6 @@ (setq org-directory "~/Nextcloud/Documents/org/") ; define generic org capture shit (setq org-default-notes-file (concat org-directory "/refile-beorg.org")))) -;; org-capture templates -(setq org-capture-templates - '(("c" "Context-include Todo" entry (file "~/Nextcloud/Documents/org/refile-beorg.org") - "* TODO %?\n%U \n '%a'" :empty-lines 1 :prepend t) - ("t" "Todo" entry (file "~/Nextcloud/Documents/org/refile-beorg.org") - "* TODO %?\n%U" :empty-lines 1 :prepend t))) ;; Set up bullets @@ -65,3 +59,19 @@ :ensure t :config (add-hook 'org-mode-hook (lambda () (org-bullets-mode 1)))) + +;; configure the org protocol +(org-load-modules-maybe t) +(require 'org-protocol) +(setq org-protocol-default-template-key "w") + +(setq org-capture-templates + `(("w" "Web site" entry (file+olp "~/Nextcloud/Documents/org/refile-beorg.org" "Web") + "* %c :website:\n%U %?%:initial") + ("x" "web snippets with selection" entry (file "~/Nextcloud/Documents/org/refile-beorg.org") + "* %^{Title}\n\n Source: %u, %c\n\n %i" :empty-lines 1) + ;; ... more templates here ... + ("c" "Context-include Todo" entry (file "~/Nextcloud/Documents/org/refile-beorg.org") + "* TODO %?\n%U \n '%a'" :empty-lines 1 :prepend t) + ("t" "Todo" entry (file "~/Nextcloud/Documents/org/refile-beorg.org") + "* TODO %?\n%U" :empty-lines 1 :prepend t)))