2016-01-12 18:49:01 +01:00
|
|
|
|
;;; mu4e.el --- part of mu4e, the mu mail user agent
|
2011-09-12 19:52:32 +02:00
|
|
|
|
;;
|
2016-01-09 20:27:13 +01:00
|
|
|
|
;; Copyright (C) 2011-2016 Dirk-Jan C. Binnema
|
2011-09-12 19:52:32 +02:00
|
|
|
|
|
|
|
|
|
;; Author: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
|
|
|
|
;; Maintainer: Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
|
|
|
|
;; Keywords: email
|
|
|
|
|
;; Version: 0.0
|
|
|
|
|
|
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
|
;;
|
|
|
|
|
;; GNU Emacs is free software: you can redistribute it and/or modify
|
|
|
|
|
;; it under the terms of the GNU General Public License as published by
|
|
|
|
|
;; the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
;; (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
;; GNU Emacs is distributed in the hope that it will be useful,
|
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
(eval-when-compile (require 'cl))
|
|
|
|
|
|
2012-04-21 08:30:54 +02:00
|
|
|
|
(require 'mu4e-meta) ;; autogenerated file with metadata (version etc.)
|
2012-11-10 14:01:17 +01:00
|
|
|
|
(require 'mu4e-headers) ;; headers view
|
2012-03-28 21:23:35 +02:00
|
|
|
|
(require 'mu4e-view) ;; message view
|
|
|
|
|
(require 'mu4e-main) ;; main screen
|
2012-04-11 21:31:52 +02:00
|
|
|
|
(require 'mu4e-compose) ;; message composition / sending
|
2012-03-28 21:23:35 +02:00
|
|
|
|
(require 'mu4e-proc) ;; communication with backend
|
2012-04-09 10:50:23 +02:00
|
|
|
|
(require 'mu4e-utils) ;; utility functions
|
2015-12-13 16:42:27 +01:00
|
|
|
|
(require 'mu4e-context) ;; support for contexts
|
2012-03-28 21:23:35 +02:00
|
|
|
|
(require 'mu4e-speedbar) ;; support for speedbar
|
2012-04-21 08:30:54 +02:00
|
|
|
|
|
2016-06-08 21:29:28 +02:00
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; we can't properly use compose buffers that are revived using
|
|
|
|
|
;; desktop-save-mode; so let's turn that off
|
|
|
|
|
(require 'desktop)
|
|
|
|
|
(add-to-list 'desktop-modes-not-to-save 'mu4e-compose-mode)
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2012-04-26 16:59:34 +02:00
|
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
2012-11-14 12:55:15 +01:00
|
|
|
|
;;;###autoload
|
2013-04-16 19:37:10 +02:00
|
|
|
|
(defun mu4e (&optional background)
|
2015-12-09 04:51:02 +01:00
|
|
|
|
"If mu4e is not running yet, start it. Then, show the main
|
2013-04-16 19:37:10 +02:00
|
|
|
|
window, unless BACKGROUND (prefix-argument) is non-nil."
|
|
|
|
|
(interactive "P")
|
2012-04-26 16:59:34 +02:00
|
|
|
|
;; start mu4e, then show the main view
|
2013-04-16 19:37:10 +02:00
|
|
|
|
(mu4e~start (unless background 'mu4e~main-view)))
|
2012-04-26 16:59:34 +02:00
|
|
|
|
|
|
|
|
|
(defun mu4e-quit()
|
|
|
|
|
"Quit the mu4e session."
|
|
|
|
|
(interactive)
|
2012-08-22 17:22:31 +02:00
|
|
|
|
(if mu4e-confirm-quit
|
|
|
|
|
(when (y-or-n-p (mu4e-format "Are you sure you want to quit?"))
|
|
|
|
|
(mu4e~stop))
|
|
|
|
|
(mu4e~stop)))
|
2012-04-26 16:59:34 +02:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2011-12-13 08:07:38 +01:00
|
|
|
|
(provide 'mu4e)
|
2016-01-12 18:49:01 +01:00
|
|
|
|
|
|
|
|
|
;;; mu4e.el ends here
|