mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 15:38:29 +00:00
Tweaking the mu4e setup.
This commit is contained in:
parent
28da2d329f
commit
62445df94c
13
init.el
13
init.el
@ -184,9 +184,8 @@ PACKAGE is installed and the current version is deleted."
|
|||||||
(defvar load-mail-setup nil)
|
(defvar load-mail-setup nil)
|
||||||
|
|
||||||
(when load-mail-setup
|
(when load-mail-setup
|
||||||
;; Dependent on both mu4e and smtpmail (for sending only).
|
;; We need mu4e
|
||||||
(require 'mu4e)
|
(require 'mu4e)
|
||||||
(require 'smtpmail)
|
|
||||||
|
|
||||||
;; Some basic mu4e settings.
|
;; Some basic mu4e settings.
|
||||||
(setq mu4e-maildir "~/.ifimail" ; top-level Maildir
|
(setq mu4e-maildir "~/.ifimail" ; top-level Maildir
|
||||||
@ -194,11 +193,13 @@ PACKAGE is installed and the current version is deleted."
|
|||||||
mu4e-drafts-folder "/INBOX.Drafts" ; unfinished messages
|
mu4e-drafts-folder "/INBOX.Drafts" ; unfinished messages
|
||||||
mu4e-trash-folder "/INBOX.Trash" ; trashed messages
|
mu4e-trash-folder "/INBOX.Trash" ; trashed messages
|
||||||
mu4e-refile-folder "/INBOX.Archive" ; saved messages
|
mu4e-refile-folder "/INBOX.Archive" ; saved messages
|
||||||
mu4e-get-mail-command "offlineimap" ; use offlineimap to fetch mail
|
mu4e-get-mail-command "offlineimap" ; offlineimap to fetch mail
|
||||||
|
mu4e-compose-signature "- Lars" ; Sign my name
|
||||||
|
mu4e-update-interval (* 5 60) ; update every 5 min
|
||||||
|
mu4e-confirm-quit nil ; just quit
|
||||||
mu4e-view-show-images t ; view images
|
mu4e-view-show-images t ; view images
|
||||||
mu4e-html2text-command
|
mu4e-html2text-command
|
||||||
"html2text -utf8" ; use utf-8
|
"html2text -utf8" ; use utf-8
|
||||||
mu4e-compose-signature "- Lars" ; Sign my name
|
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Setup for sending mail.
|
;; Setup for sending mail.
|
||||||
@ -218,10 +219,12 @@ PACKAGE is installed and the current version is deleted."
|
|||||||
(when (fboundp 'imagemagick-register-types)
|
(when (fboundp 'imagemagick-register-types)
|
||||||
(imagemagick-register-types))
|
(imagemagick-register-types))
|
||||||
|
|
||||||
;; A function to show mu4e and nothing else!
|
;; A wrapper function to start (if necessary), fetch mail and delete other
|
||||||
|
;; windows.
|
||||||
(defun show-mu4e ()
|
(defun show-mu4e ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(mu4e)
|
(mu4e)
|
||||||
|
(mu4e-update-mail-and-index t)
|
||||||
(delete-other-windows))
|
(delete-other-windows))
|
||||||
|
|
||||||
;; Overwrite the native 'compose-mail' binding to 'show-mu4e'.
|
;; Overwrite the native 'compose-mail' binding to 'show-mu4e'.
|
||||||
|
15
init.org
15
init.org
@ -362,7 +362,7 @@
|
|||||||
calendar-location-name "Oslo, Norway")
|
calendar-location-name "Oslo, Norway")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Mail
|
** COMMENT Mail
|
||||||
|
|
||||||
I use [[http://www.djcbsoftware.nl/code/mu/mu4e.html][mu4e]] (which is a part of [[http://www.djcbsoftware.nl/code/mu/][mu]]) along with [[http://docs.offlineimap.org/en/latest/][offlineimap]] on one of my
|
I use [[http://www.djcbsoftware.nl/code/mu/mu4e.html][mu4e]] (which is a part of [[http://www.djcbsoftware.nl/code/mu/][mu]]) along with [[http://docs.offlineimap.org/en/latest/][offlineimap]] on one of my
|
||||||
computers. Because the mail-setup wont work without these programs
|
computers. Because the mail-setup wont work without these programs
|
||||||
@ -373,9 +373,8 @@
|
|||||||
(defvar load-mail-setup nil)
|
(defvar load-mail-setup nil)
|
||||||
|
|
||||||
(when load-mail-setup
|
(when load-mail-setup
|
||||||
;; Dependent on both mu4e and smtpmail (for sending only).
|
;; We need mu4e
|
||||||
(require 'mu4e)
|
(require 'mu4e)
|
||||||
(require 'smtpmail)
|
|
||||||
|
|
||||||
;; Some basic mu4e settings.
|
;; Some basic mu4e settings.
|
||||||
(setq mu4e-maildir "~/.ifimail" ; top-level Maildir
|
(setq mu4e-maildir "~/.ifimail" ; top-level Maildir
|
||||||
@ -383,11 +382,13 @@
|
|||||||
mu4e-drafts-folder "/INBOX.Drafts" ; unfinished messages
|
mu4e-drafts-folder "/INBOX.Drafts" ; unfinished messages
|
||||||
mu4e-trash-folder "/INBOX.Trash" ; trashed messages
|
mu4e-trash-folder "/INBOX.Trash" ; trashed messages
|
||||||
mu4e-refile-folder "/INBOX.Archive" ; saved messages
|
mu4e-refile-folder "/INBOX.Archive" ; saved messages
|
||||||
mu4e-get-mail-command "offlineimap" ; use offlineimap to fetch mail
|
mu4e-get-mail-command "offlineimap" ; offlineimap to fetch mail
|
||||||
|
mu4e-compose-signature "- Lars" ; Sign my name
|
||||||
|
mu4e-update-interval (* 5 60) ; update every 5 min
|
||||||
|
mu4e-confirm-quit nil ; just quit
|
||||||
mu4e-view-show-images t ; view images
|
mu4e-view-show-images t ; view images
|
||||||
mu4e-html2text-command
|
mu4e-html2text-command
|
||||||
"html2text -utf8" ; use utf-8
|
"html2text -utf8" ; use utf-8
|
||||||
mu4e-compose-signature "- Lars" ; Sign my name
|
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Setup for sending mail.
|
;; Setup for sending mail.
|
||||||
@ -407,10 +408,12 @@
|
|||||||
(when (fboundp 'imagemagick-register-types)
|
(when (fboundp 'imagemagick-register-types)
|
||||||
(imagemagick-register-types))
|
(imagemagick-register-types))
|
||||||
|
|
||||||
;; A function to show mu4e and nothing else!
|
;; A wrapper function to start (if necessary), fetch mail and delete other
|
||||||
|
;; windows.
|
||||||
(defun show-mu4e ()
|
(defun show-mu4e ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(mu4e)
|
(mu4e)
|
||||||
|
(mu4e-update-mail-and-index t)
|
||||||
(delete-other-windows))
|
(delete-other-windows))
|
||||||
|
|
||||||
;; Overwrite the native 'compose-mail' binding to 'show-mu4e'.
|
;; Overwrite the native 'compose-mail' binding to 'show-mu4e'.
|
||||||
|
Loading…
Reference in New Issue
Block a user