diff options
author | Adrian Kummerlaender | 2020-06-24 21:31:11 +0200 |
---|---|---|
committer | Adrian Kummerlaender | 2020-06-24 21:31:11 +0200 |
commit | d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787 (patch) | |
tree | 1aafd15c279c87f381feb3ed9cc9b14973307d2f /gui | |
parent | 4855d08a4d62f0c181c8fd67013b2b370e8f8ac7 (diff) | |
download | nixos_home-d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787.tar nixos_home-d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787.tar.gz nixos_home-d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787.tar.bz2 nixos_home-d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787.tar.lz nixos_home-d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787.tar.xz nixos_home-d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787.tar.zst nixos_home-d09ce8b96295ccfd4b18fbb8f859f5ccd57fe787.zip |
Update mu4e mail setup
Diffstat (limited to 'gui')
-rw-r--r-- | gui/conf/init.el | 15 | ||||
-rw-r--r-- | gui/emacs.nix | 1 | ||||
-rw-r--r-- | gui/email.nix | 8 |
3 files changed, 20 insertions, 4 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el index dbcffcc..bf442f1 100644 --- a/gui/conf/init.el +++ b/gui/conf/init.el @@ -356,15 +356,26 @@ (use-package mu4e :config (setq mu4e-maildir "~/mail") - (setq mu4e-get-mail-command "mbsync -a") + (setq mu4e-get-mail-command "true") + (setq mu4e-index-cleanup nil) + (setq mu4e-index-lazy-check t) + (setq mu4e-update-interval 120) (setq mu4e-use-fancy-chars t) + (setq mu4e-headers-attach-mark '("a" . "@")) ; alignment fix (setq mu4e-change-filenames-when-moving t) (setq sendmail-program "msmtp" send-mail-function 'smtpmail-send-it message-sendmail-f-is-evil t message-send-mail-function 'message-send-mail-with-sendmail) (require 'org-mu4e) - (evil-collection-init 'mu4e)) + (evil-collection-init 'mu4e) + (setq doom-modeline-mu4e t)) + +(use-package mu4e-alert + :ensure t + :config + (mu4e-alert-set-default-style 'libnotify) + (add-hook 'after-init-hook #'mu4e-alert-enable-notifications)) (setq mu4e-contexts `(,(make-mu4e-context diff --git a/gui/emacs.nix b/gui/emacs.nix index c674213..15b9049 100644 --- a/gui/emacs.nix +++ b/gui/emacs.nix @@ -56,6 +56,7 @@ source-sans-pro source-serif-pro emacs-all-the-icons-fonts + mu ]; # see https://github.com/rycee/home-manager/issues/589#issuecomment-466594137 diff --git a/gui/email.nix b/gui/email.nix index 675233d..99246af 100644 --- a/gui/email.nix +++ b/gui/email.nix @@ -14,7 +14,7 @@ address = "adrian@kummerlaender.eu"; userName = "adrian@kummerlaender.eu"; - passwordCommand = "pass it/automatix_mail"; + passwordCommand = "${pkgs.pass}/bin/pass it/automatix_mail"; gpg = { key = "61F4C67D12636E70AFB10C3D83E758150AB49859"; @@ -44,7 +44,7 @@ address = "adrian.kummerlaender@student.kit.edu"; userName = "urdzx@student.kit.edu"; - passwordCommand = "pass kit"; + passwordCommand = "${pkgs.pass}/bin/pass kit"; imap = { host = "imap.kit.edu"; @@ -68,4 +68,8 @@ msmtp.enable = true; }; }; + + services.mbsync = { + enable = true; + }; } |