Merge pull request #1290 from ericdanan/org-mu4e
org-mu4e: move mu4e requirement inside org-mu4e-open
This commit is contained in:
@ -38,7 +38,6 @@
|
|||||||
(require 'org-exp nil 'noerror)
|
(require 'org-exp nil 'noerror)
|
||||||
|
|
||||||
(eval-when-compile (require 'cl))
|
(eval-when-compile (require 'cl))
|
||||||
(require 'mu4e)
|
|
||||||
|
|
||||||
(defgroup org-mu4e nil
|
(defgroup org-mu4e nil
|
||||||
"Settings for the org-mode related functionality in mu4e."
|
"Settings for the org-mode related functionality in mu4e."
|
||||||
@ -129,6 +128,7 @@ Example usage:
|
|||||||
(defun org-mu4e-open (path)
|
(defun org-mu4e-open (path)
|
||||||
"Open the mu4e message (for paths starting with 'msgid:') or run
|
"Open the mu4e message (for paths starting with 'msgid:') or run
|
||||||
the query (for paths starting with 'query:')."
|
the query (for paths starting with 'query:')."
|
||||||
|
(require 'mu4e)
|
||||||
(cond
|
(cond
|
||||||
((string-match "^msgid:\\(.+\\)" path)
|
((string-match "^msgid:\\(.+\\)" path)
|
||||||
(mu4e-view-message-with-message-id (match-string 1 path)))
|
(mu4e-view-message-with-message-id (match-string 1 path)))
|
||||||
|
|||||||
Reference in New Issue
Block a user