From 181f3530f3c2b25ba8eaed792df90da1a82dcd81 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Tue, 25 Jan 2022 16:57:56 -0600 Subject: Add capture templates --- init.el | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/init.el b/init.el index 88102be..8bbfe16 100644 --- a/init.el +++ b/init.el @@ -580,6 +580,25 @@ (+org-capture-templates-setf "l" `("Link" entry (file "links.org") "* %(+org-insert-link-dwim) %^g\n\n")) + (+org-capture-templates-setf "w" "Work") + (+org-capture-templates-setf "j" + '("Journal entry" plain + (file+olp+datetree "journal.org") + "**** %i%?\n" + :time-prompt n + :unnarrowed t)) + ;; TODO: Prompt for identity file from ~/.ssh and try to guess the hostname + ;; from there. + (+org-capture-templates-setf "s" + `("SSH Config" plain (file "~/.ssh/config") + ,(concat "\n\nHost %^{Host: }" + "\nHostname %\\1" + "\nUser %^{User:|" (user-login-name) "}" + "\nIdentityFile %?" + "\nIdentitiesOnly yes" + "\nPubkeyAuthentication yes" + "\nPort %^{Port: |22}") + :unnarrowed t)) (+org-capture-sort)) (setup org-contacts -- cgit 1.4.1-21-gabe81