Add capture templates
This commit is contained in:
parent
3b6dcdc3bd
commit
181f3530f3
19
init.el
19
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
|
||||
|
|
Loading…
Reference in New Issue