Rudy’s OBTF Rudolf Adamkovič

Home / Emacs / Notmuch Search / My integration with Org


Store

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

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