mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
Add org-msg for composing email with org-mode
This commit is contained in:
parent
4b1f78feb2
commit
c3d2fbf04c
21
init.org
21
init.org
@ -216,6 +216,7 @@
|
|||||||
olivetti ; Minor mode for a nice writing environment
|
olivetti ; Minor mode for a nice writing environment
|
||||||
org ; Outline-based notes management and organizer
|
org ; Outline-based notes management and organizer
|
||||||
org-bullets ; Show bullets in org-mode as UTF-8 characters
|
org-bullets ; Show bullets in org-mode as UTF-8 characters
|
||||||
|
org-msg ; Org mode to send and reply to email in HTML
|
||||||
paredit ; minor mode for editing parentheses
|
paredit ; minor mode for editing parentheses
|
||||||
pdf-tools ; Emacs support library for PDF files
|
pdf-tools ; Emacs support library for PDF files
|
||||||
projectile ; Manage and navigate projects in Emacs easily
|
projectile ; Manage and navigate projects in Emacs easily
|
||||||
@ -628,10 +629,10 @@
|
|||||||
(when load-mail-setup
|
(when load-mail-setup
|
||||||
(with-eval-after-load 'mu4e
|
(with-eval-after-load 'mu4e
|
||||||
(setq
|
(setq
|
||||||
|
mail-user-agent 'mu4e-user-agent
|
||||||
user-full-name "Lars Tveito" ; Your full name
|
user-full-name "Lars Tveito" ; Your full name
|
||||||
user-mail-address "larstvei@ifi.uio.no" ; And email-address
|
user-mail-address "larstvei@ifi.uio.no" ; And email-address
|
||||||
|
|
||||||
|
|
||||||
sendmail-program (executable-find "msmtp")
|
sendmail-program (executable-find "msmtp")
|
||||||
send-mail-function 'smtpmail-send-it
|
send-mail-function 'smtpmail-send-it
|
||||||
|
|
||||||
@ -649,7 +650,23 @@
|
|||||||
mu4e-trash-folder "/Deleted Items"
|
mu4e-trash-folder "/Deleted Items"
|
||||||
mu4e-trash-folder "/Drafts"
|
mu4e-trash-folder "/Drafts"
|
||||||
|
|
||||||
mu4e-use-fancy-chars t))
|
mu4e-use-fancy-chars t)
|
||||||
|
|
||||||
|
(require 'org)
|
||||||
|
(require 'org-msg)
|
||||||
|
|
||||||
|
(add-to-list 'mu4e-compose-pre-hook 'org-msg-mode)
|
||||||
|
(setq org-msg-enforce-css (concat user-emacs-directory "email-style.css")
|
||||||
|
org-msg-options "html-postamble:nil toc:nil num:nil author:nil email:nil"
|
||||||
|
org-msg-default-alternatives '((new . (text html))
|
||||||
|
(reply-to-html . (text html))
|
||||||
|
(reply-to-text . (text)))
|
||||||
|
org-msg-signature "#+begin_signature
|
||||||
|
,#+begin_export html
|
||||||
|
|
||||||
|
- Lars
|
||||||
|
,#+end_export
|
||||||
|
,#+end_signature"))
|
||||||
(autoload 'mu4e "mu4e" nil t))
|
(autoload 'mu4e "mu4e" nil t))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user