* mu4e(-main|-proc-|utils).el: refactoring, some cleanup/improvements

- move all mu4e startup functions to mu4e-utils
  - add `mu4e' function to mu4e.el that call these mu4e-utils function
  - now easy to start mu4e without showing ui
  - mu4e~proc-is-running moved to mu4e-proc
  - made mu4e-read-option a bit smarter
  - renamed some more functions from mu4e- => mu4e~ (i.e.., mark them private)
This commit is contained in:
djcb
2012-04-26 17:59:34 +03:00
parent 5ea06f1469
commit 084ecc71d2
4 changed files with 182 additions and 135 deletions

View File

@ -66,8 +66,25 @@
;; this one is defined in mu4e-view
(setq mu4e-temp-func 'mu4e~view-temp-handler)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun mu4e ()
"Start mu4e."
(interactive)
;; start mu4e, then show the main view
(mu4e~start 'mu4e~main-view))
(defun mu4e-quit()
"Quit the mu4e session."
(interactive)
(when (y-or-n-p "Are you sure you want to quit? ")
(mu4e~stop)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(provide 'mu4e)