Advertisement
Guest User

Untitled

a guest
May 24th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. (setq org-capture-templates
  2. (quote (("t" "todo" entry (file "~/org/refile.org")
  3. "* TODO %?n%Un%an" :clock-in t :clock-resume t)
  4. ("r" "respond" entry (file "~/org/refile.org")
  5. "* NEXT Respond to %:from on %:subjectnSCHEDULED: %tn%Un%an" :clock-in t :clock-resume t :immediate-finish t))))
  6.  
  7. (defun org-notmuch-store-link ()
  8. "Store a link to a notmuch search or message."
  9. (when (eq major-mode 'notmuch-show-mode)
  10. (let* ((message-id (notmuch-show-get-prop :id))
  11. (subject (notmuch-show-get-subject))
  12. (to (notmuch-show-get-to))
  13. (from (notmuch-show-get-from))
  14. desc link)
  15. (org-store-link-props :type "notmuch" :from from :to to
  16. :subject subject :message-id message-id)
  17. (setq desc (org-email-link-description))
  18. (setq link (concat "notmuch:" "id:" message-id))
  19. (org-add-link-props :link link :description desc)
  20. link)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement