diff options
author | Case Duckworth | 2022-01-25 16:57:56 -0600 |
---|---|---|
committer | Case Duckworth | 2022-01-25 16:57:56 -0600 |
commit | 181f3530f3c2b25ba8eaed792df90da1a82dcd81 (patch) | |
tree | 0186feb755b7533aca14545e004d81b577f1f7aa | |
parent | Add +jabber (diff) | |
download | emacs-181f3530f3c2b25ba8eaed792df90da1a82dcd81.tar.gz emacs-181f3530f3c2b25ba8eaed792df90da1a82dcd81.zip |
Add capture templates
-rw-r--r-- | init.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/init.el b/init.el index 88102be..8bbfe16 100644 --- a/init.el +++ b/init.el | |||
@@ -580,6 +580,25 @@ | |||
580 | (+org-capture-templates-setf "l" | 580 | (+org-capture-templates-setf "l" |
581 | `("Link" entry (file "links.org") | 581 | `("Link" entry (file "links.org") |
582 | "* %(+org-insert-link-dwim) %^g\n\n")) | 582 | "* %(+org-insert-link-dwim) %^g\n\n")) |
583 | (+org-capture-templates-setf "w" "Work") | ||
584 | (+org-capture-templates-setf "j" | ||
585 | '("Journal entry" plain | ||
586 | (file+olp+datetree "journal.org") | ||
587 | "**** %i%?\n" | ||
588 | :time-prompt n | ||
589 | :unnarrowed t)) | ||
590 | ;; TODO: Prompt for identity file from ~/.ssh and try to guess the hostname | ||
591 | ;; from there. | ||
592 | (+org-capture-templates-setf "s" | ||
593 | `("SSH Config" plain (file "~/.ssh/config") | ||
594 | ,(concat "\n\nHost %^{Host: }" | ||
595 | "\nHostname %\\1" | ||
596 | "\nUser %^{User:|" (user-login-name) "}" | ||
597 | "\nIdentityFile %?" | ||
598 | "\nIdentitiesOnly yes" | ||
599 | "\nPubkeyAuthentication yes" | ||
600 | "\nPort %^{Port: |22}") | ||
601 | :unnarrowed t)) | ||
583 | (+org-capture-sort)) | 602 | (+org-capture-sort)) |
584 | 603 | ||
585 | (setup org-contacts | 604 | (setup org-contacts |