* mu4e: allow starting mu4e in the background

This commit is contained in:
djcb 2013-04-16 20:37:10 +03:00
parent 7d52ef1c3f
commit 0866b66665
1 changed files with 5 additions and 4 deletions

View File

@ -72,11 +72,12 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;###autoload
(defun mu4e ()
"Start mu4e."
(interactive)
(defun mu4e (&optional background)
"If mu4e is not running yet, start it. Then, show the the main
window, unless BACKGROUND (prefix-argument) is non-nil."
(interactive "P")
;; start mu4e, then show the main view
(mu4e~start 'mu4e~main-view))
(mu4e~start (unless background 'mu4e~main-view)))
(defun mu4e-quit()
"Quit the mu4e session."