diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2017-01-10 10:59:56 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2017-01-10 10:59:56 +0100 |
| commit | ca26f7f477201ac55620976060c6728b24a8083f (patch) | |
| tree | e3195768b48804f1f87f7922d4e2f310240d2fcf /emacs/settings/init-mu4e.el | |
| parent | 4609e14306d96bcdb973befd5a6d6b05929d1f4a (diff) | |
| download | dotfiles-ca26f7f477201ac55620976060c6728b24a8083f.tar.gz dotfiles-ca26f7f477201ac55620976060c6728b24a8083f.zip | |
emacs: enable ema-mail-mode in the proper modes
This way it's easier to encrypt/decrypt emails.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'emacs/settings/init-mu4e.el')
| -rw-r--r-- | emacs/settings/init-mu4e.el | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/emacs/settings/init-mu4e.el b/emacs/settings/init-mu4e.el index c3c0b84..5e6f717 100644 --- a/emacs/settings/init-mu4e.el +++ b/emacs/settings/init-mu4e.el @@ -142,7 +142,7 @@ "Miquel Sabaté Solà,\n" "PGP: 4096R / 1BA5 3C7A C93D CA2A CFDF DA97 96BE 8C6F D89D 6565\n")) - ; Sign outgoing emails + ; Sign outgoing emails always. (add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime) ;; To avoid UID clashes. See: @@ -208,13 +208,20 @@ (set-fill-column 80) (use-hard-newlines t 'guess) + ; So it's easy to encrypt/decrypt emails. + (epa-mail-mode) + ; Spellz (flyspell-mode)) (add-hook 'mu4e-compose-mode-hook 'mssola-compose-mode) - ; I want to read messages in the format that the sender used. - (add-hook 'mu4e-view-mode-hook (lambda () (visual-line-mode 1))) + ; I want to read messages in the format that the sender used. I'm also + ; enabling epa-mail-mode, so it's easy to decrypt received emails. + (add-hook 'mu4e-view-mode-hook + (lambda () + (epa-mail-mode) + (visual-line-mode 1))) ;; Helper packages. |
