diff --git a/README b/README new file mode 100644 index 0000000..2d8a506 --- /dev/null +++ b/README @@ -0,0 +1,8 @@ +# instalace mailu: +brew install mu isync msmtp + +pak mbsync personal (musi existovat .mbsyncrc) + +pak +mu init --maildir=~/.mail --my-address=martin@sukany.cz +mu index diff --git a/config.el b/config.el index 0aa0aa5..f885a5f 100644 --- a/config.el +++ b/config.el @@ -357,3 +357,42 @@ Funguje v libovolném textu, včetně Markdown linků (např. [x](./...))." (setq org-idle-time 1.0) + +;; mu4e +(add-to-list 'load-path (expand-file-name "/opt/homebrew/opt/mu/share/emacs/site-lisp/mu/mu4e")) +(after! mu4e + (setq mu4e-maildir "~/.mail" + mu4e-get-mail-command "mbsync personal" + mu4e-update-interval 300 + mu4e-change-filenames-when-moving t + mu4e-view-show-images t)) +(after! mu4e + (setq mu4e-maildir (expand-file-name "~/.mail") + mu4e-get-mail-command "mbsync personal" + mu4e-update-interval 300 + mu4e-change-filenames-when-moving t + mu4e-view-show-images t + + ;; TADY je to důležité: + mu4e-sent-folder "/personal/Sent" + mu4e-drafts-folder "/personal/Drafts" + mu4e-trash-folder "/personal/Trash" + mu4e-refile-folder "/personal/Archive")) +(after! mu4e + (setq sendmail-program "msmtp" + message-send-mail-function #'message-send-mail-with-sendmail + mail-specify-envelope-from t + message-sendmail-envelope-from 'header)) + +(setq user-mail-address "martin@sukany.cz" + user-full-name "Martin Sukany") + +(map! :map mu4e-view-mode-map + :localleader + "l l" #'org-store-link + "l i" #'org-insert-link) + +(map! :map mu4e-headers-mode-map + :localleader + "l l" #'org-store-link + "l i" #'org-insert-link) diff --git a/custom.el b/custom.el new file mode 100644 index 0000000..acc4918 --- /dev/null +++ b/custom.el @@ -0,0 +1,14 @@ +;;; -*- lexical-binding: t -*- +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(smtpmail-smtp-server "mailu.apps.sukany.cz") + '(smtpmail-smtp-service 465)) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + ) diff --git a/init.el b/init.el index 68a6d2b..23358af 100644 --- a/init.el +++ b/init.el @@ -52,6 +52,9 @@ tmux upload + :email + mu4e + :os (:if (featurep :system 'macos) macos)