aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-org.el21
1 files changed, 18 insertions, 3 deletions
diff --git a/.emacs.d/lisp/init-org.el b/.emacs.d/lisp/init-org.el
index 15e5d03..ccaf0b0 100644
--- a/.emacs.d/lisp/init-org.el
+++ b/.emacs.d/lisp/init-org.el
@@ -109,11 +109,18 @@
(file+headline org-default-notes-file
,(format-time-string "%Y-%m-%d %A"))
"* TODO %?\nCaptured on %U")
- ("j" "Journal"
- entry
+ ("j" "Journal" entry
(file+headline org-default-notes-file
,(format-time-string "%Y-%m-%d %A"))
- "* %?\nCaptured on %U")))
+ "* %?\nCaptured on %U")
+ ("p" "Protocol" entry
+ (file+headline org-default-notes-file
+ ,(format-time-string "%Y-%m-%d %A"))
+ "* [[%:link][%:description]]\nCaptured on %U\n\n#+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n%?")
+ ("L" "Protocol Link" entry
+ (file+headline org-default-notes-file
+ ,(format-time-string "%Y-%m-%d %A"))
+ "* [[%:link][%:description]]\nCaptured on %U\n%?")))
;; clock
(setq org-clock-persist 'history)
@@ -142,6 +149,14 @@
(setq alert-default-style 'osx-notifier))
(setq org-alert-interval 60)
+;; org-protocol
+(add-hook 'after-init-hook
+ (lambda ()
+ (require 'server)
+ (unless (server-running-p) (require 'org-protocol)))
+ 'append)
+
(require 'init-org-roam)
(require 'init-org-agenda)
+
(provide 'init-org)