Commit afbf2723 authored by Arjen Wiersma's avatar Arjen Wiersma

feat: add mu4e email client config

parent 21fe4f4d
......@@ -1326,3 +1326,80 @@ The following are snippets, functions or other temporary code that I have found
;; :ensure t)
* Email
#+begin_src emacs-lisp
(require 'mu4e)
(defun my-render-html-message ()
(let ((dom (libxml-parse-html-region (point-min) (point-max))))
(shr-insert-document dom)
(goto-char (point-min))))
(setq mu4e-html2text-command 'my-render-html-message)
;;(setq mu4e-html2text-command "html2text -utf8 -width 72")
;; default
(setq mu4e-maildir (expand-file-name "~/Maildir"))
(setq mu4e-drafts-folder "/Drafts")
(setq mu4e-sent-folder "/Sent Mail")
(setq mu4e-trash-folder "/Trash")
;; don't save message to Sent Messages, GMail/IMAP will take care of this
(setq mu4e-sent-messages-behavior 'delete)
;; setup some handy shortcuts
(setq mu4e-maildir-shortcuts
'(("/Personal/INBOX" . ?i)
("/Sent Mail" . ?s)
("/Trash" . ?t)))
;; allow for updating mail using 'U' in the main view:
(setq mu4e-get-mail-command "offlineimap")
;; something about ourselves
;; I don't use a signature...
user-mail-address ""
user-full-name "Arjen Wiersma"
;; message-signature
;; (concat
;; "Foo X. Bar\n"
;; "\n")
;; sending mail -- replace USERNAME with your gmail username
;; also, make sure the gnutls command line utils are installed
;; package 'gnutls-bin' in Debian/Ubuntu, 'gnutls' in Archlinux.
(require 'smtpmail)
(setq message-send-mail-function 'smtpmail-send-it
starttls-use-gnutls t
'(("" 587 nil nil))
(expand-file-name "~/.authinfo.gpg")
smtpmail-default-smtp-server ""
smtpmail-smtp-server ""
smtpmail-smtp-service 587
smtpmail-debug-info t)
* Quantified Self
#+begin_src emacs-lisp
(setq org-capture-templates
("f" "Fitness Entry"
entry (file+datetree "~/Dropbox/org/Notes/")
"* %?"
:empty-lines 1)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment