Rudy’s OBTF Rudolf Adamkovič

Home / Emacs / Notmuch Show / My integration with Org


Store

(with-eval-after-load 'org
  (defun my-org-notmuch-show-store-link ()
    "Store a link to a Notmuch message."
    (interactive)
    (require 'notmuch)
    (when (eq major-mode 'notmuch-show-mode)
      (org-store-link-props
       :type "notmuch"
       :link (concat "notmuch-show:" (notmuch-show-get-message-id t))
       :description (notmuch-show-get-subject)))))

© 2025 Rudolf Adamkovič under GNU General Public License version 3.
Made with Emacs and secret alien technologies of yesteryear.