diff options
author | Guangxiong Lin <[email protected]> | 2022-07-14 21:25:57 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-07-14 21:25:57 +0800 |
commit | 7c5503a00200af09b9295b9d6acbb8978ff76770 (patch) | |
tree | bf944e113fb6260559f8aad5f00baf129c3459c1 | |
parent | 8989d9e784ea029595ba5642b8afe89ad5faacbd (diff) | |
download | dotfiles-7c5503a00200af09b9295b9d6acbb8978ff76770.tar.gz dotfiles-7c5503a00200af09b9295b9d6acbb8978ff76770.tar.bz2 dotfiles-7c5503a00200af09b9295b9d6acbb8978ff76770.zip |
Support org protocol
-rw-r--r-- | .emacs.d/lisp/init-org.el | 21 |
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) |