aboutsummaryrefslogtreecommitdiff
path: root/emacs
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2017-01-10 10:59:56 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2017-01-10 10:59:56 +0100
commitca26f7f477201ac55620976060c6728b24a8083f (patch)
treee3195768b48804f1f87f7922d4e2f310240d2fcf /emacs
parent4609e14306d96bcdb973befd5a6d6b05929d1f4a (diff)
downloaddotfiles-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')
-rw-r--r--emacs/settings/init-mu4e.el13
-rw-r--r--emacs/settings/init-org.el3
2 files changed, 13 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.
diff --git a/emacs/settings/init-org.el b/emacs/settings/init-org.el
index 8dd1154..cf6fce4 100644
--- a/emacs/settings/init-org.el
+++ b/emacs/settings/init-org.el
@@ -55,6 +55,9 @@ the entire subtree. Idea taken from @aaronbieber"
;; TODO: wc mode in org-mode
+;; TODO: shortcut for making an org link, and transforming a link into a proper
+;; org link
+
(with-eval-after-load 'evil
; TODO: doesn't work
(define-key global-map (kbd "M-h") 'help-command)