From 61c5434ba3e941183155788e716ef576057580f9 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 28 Sep 2023 17:04:01 +0100 Subject: [PATCH] Add notifymuch package with hook Should get desktop notifications on new notmuch entries now Trial different emacs email frontends --- home/accounts/email.nix | 7 +++++-- home/emacs/doom/init.el | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/home/accounts/email.nix b/home/accounts/email.nix index 376e4c4b..dd3b796e 100644 --- a/home/accounts/email.nix +++ b/home/accounts/email.nix @@ -1,7 +1,7 @@ { pkgs, hostName, ... }: { - home.packages = with pkgs; [ protonmail-bridge ]; + home.packages = with pkgs; [ notifymuch protonmail-bridge ]; programs = { mbsync = { enable = true; @@ -10,9 +10,12 @@ icloud = [ "INBOX" ]; }; }; + notmuch = { + enable = true; + hooks.postNew = "${pkgs.notifymuch}/bin/notifymuch"; + }; msmtp.enable = true; mu.enable = true; - notmuch.enable = true; }; accounts.email = { maildirBasePath = ".mail"; diff --git a/home/emacs/doom/init.el b/home/emacs/doom/init.el index 96bac39f..54630f2d 100644 --- a/home/emacs/doom/init.el +++ b/home/emacs/doom/init.el @@ -178,7 +178,7 @@ :email (mu4e +org +gmail) (notmuch +afew +org) - ;; (wanderlust +gmail) + (wanderlust +gmail) :app calendar