From 7111b92461f06dfaab4d8f33787f73b1b9313c06 Mon Sep 17 00:00:00 2001 From: Grant Shoshin Shangreaux Date: Wed, 1 Mar 2023 21:16:29 -0600 Subject: Add: org-capture-templates and Fix: telephone-line config --- shoshimacs.el | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'shoshimacs.el') diff --git a/shoshimacs.el b/shoshimacs.el index 8d22251..bee6420 100644 --- a/shoshimacs.el +++ b/shoshimacs.el @@ -153,6 +153,18 @@ (package-install 'markdown-mode) +(setq org-default-notes-file (concat org-directory "/notes.org")) + +(setq org-capture-templates + `(("p" "Protocol" entry (file+headline ,org-default-notes-file "Inbox") + "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?") + ("L" "Protocol Link" entry (file+headline ,org-default-notes-file "Inbox") + "* %? [[%:link][%:description]] \nCaptured On: %U"))) + +(setq org-refile-use-outline-path t + org-refile-allow-creating-parent-nodes t + org-refile-targets '((nil . (:maxlevel . 2)))) + (defun my-org-top-level-heading () (interactive) (let ((moo 1)) @@ -376,11 +388,10 @@ (accent . (telephone-line-major-mode-segment)) (evil . (telephone-line-airline-position-segment)))) +(telephone-line-mode t) (set-face-background 'telephone-line-evil-normal "deep pink") (set-face-background 'telephone-line-evil-insert "Dark Turquoise") -(telephone-line-mode t) - (defun screenshot-svg () "Save a screenshot of the current frame as an SVG image. Saves to a temp file and puts the filename in the kill ring." -- cgit v1.2.3