Merge pull request #1290 from ericdanan/org-mu4e

org-mu4e: move mu4e requirement inside org-mu4e-open
This commit is contained in:
Dirk-Jan C. Binnema 2018-08-18 08:54:17 +03:00 committed by GitHub
commit 35d9c60a40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,6 @@
(require 'org-exp nil 'noerror)
(eval-when-compile (require 'cl))
(require 'mu4e)
(defgroup org-mu4e nil
"Settings for the org-mode related functionality in mu4e."
@ -129,6 +128,7 @@ Example usage:
(defun org-mu4e-open (path)
"Open the mu4e message (for paths starting with 'msgid:') or run
the query (for paths starting with 'query:')."
(require 'mu4e)
(cond
((string-match "^msgid:\\(.+\\)" path)
(mu4e-view-message-with-message-id (match-string 1 path)))