Add capture templates

This commit is contained in:
Case Duckworth 2022-01-25 16:57:56 -06:00
parent 3b6dcdc3bd
commit 181f3530f3
1 changed files with 19 additions and 0 deletions

19
init.el
View File

@ -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