summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-01-24 11:59:04 +0100
committermms <michal@sapka.me>2024-01-24 11:59:04 +0100
commitedfbf83b7d11d72de9bbaaefdab16a0740a79298 (patch)
treeabba453646e14e4a51ae8c07c48250f9d1939af4
parenta6c331b3fb16f63e52a9200c2326c916a3355dd6 (diff)
email sendout
-rw-r--r--config.org1
-rw-r--r--init.el2
-rw-r--r--mms-misc.org22
3 files changed, 23 insertions, 2 deletions
diff --git a/config.org b/config.org
index be397bb..c2fcb40 100644
--- a/config.org
+++ b/config.org
@@ -50,5 +50,4 @@ I use Eglot for using LSPs. They are not perfect, but still very usable
* Local setup
#+begin_src emacs-lisp
- (load-file "~/.emacs.d/config_local.el")
#+end_src
diff --git a/init.el b/init.el
index 77ea012..4dedb01 100644
--- a/init.el
+++ b/init.el
@@ -2,6 +2,8 @@
(org-babel-load-file "~/.emacs.d/mms-keyboard.org")
(org-babel-load-file "~/.emacs.d/mms-gui.org")
+(load-file "~/.emacs.d/config_local.el")
+
(org-babel-load-file "~/.emacs.d/config.org")
diff --git a/mms-misc.org b/mms-misc.org
index cb7b1be..d0a3d2b 100644
--- a/mms-misc.org
+++ b/mms-misc.org
@@ -54,9 +54,29 @@ You can find my guide on my [[https://michal.sapka.me/emacs/notmuch/][emacs site
"m m" '(lambda () (interactive) (notmuch-hello) :wk "Notmuch hello"))
#+end_src
-** TODO composing
+** composing
+
+I use =msmtp= for email sendout.
+In near future I'll move to =mstmtp-queue=, but for now I need basic setup.
+
+I set up =mms-email-address= in my config_local.el, as it changes between machines and is private
+
+#+begin_src emacs-lisp
+ (setq send-mail-function 'sendmail-send-it
+ user-mail-address mms-email-address
+ sendmail-program "/usr/local/bin/msmtp"
+ mail-specify-envelope-from t
+ message-sendmail-envelope-from 'header
+ mail-envelope-from 'header)
+#+end_src
+
+#+begin_src emacs-lisp
+ (mms-leader-keys
+ "m c" '(lambda () (interactive) (compose-mail) :wk "compose email"))
+#+end_src
* Demos
+
#+begin_src emacs-lisp
(use-package demo-it
:ensure t)