Rudolf Adamkovič Personal site


Configuration: Sexp queries

(with-eval-after-load 'notmuch
  (defun my-notmuch-query (sexp)
    "Return string query equivalent to SEXP."
    (format "sexp:\"%s\""
            (string-replace "\"" "\"\""
                            (format "%S" sexp)))))
(with-eval-after-load 'notmuch
  (unless (equal (notmuch-config-get "built_with.sexp_queries") "true")
    (user-error "Notmuch not built with sexps.")))

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