From 4472899fff18d78b1ac0c65fb7b918bf89666c5e Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Wed, 15 Feb 2023 19:27:29 -0500 Subject: [PATCH] tweak email --- home-manager/linux/services/email.nix | 2 +- scripts/update-mu4e.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/linux/services/email.nix b/home-manager/linux/services/email.nix index 6678523..a8353ee 100644 --- a/home-manager/linux/services/email.nix +++ b/home-manager/linux/services/email.nix @@ -86,7 +86,7 @@ with lib; { # For fun reasons this requires enabling the program and the service programs.mbsync = { enable = true; }; services.mbsync = { - enable = true; + enable = !config.nathan.programs.emacs.service; frequency = "*:0/5"; # Index manually with mu if we don't have emacs setup, but if we have the emacs service setup, # run through emacsclient, as it will have the lock diff --git a/scripts/update-mu4e.sh b/scripts/update-mu4e.sh index ac0f32a..eb0825c 100755 --- a/scripts/update-mu4e.sh +++ b/scripts/update-mu4e.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash # Tell emacs to update mu4e -emacsclient --eval "(mu4e-update-index)" || true +emacsclient --eval "(mu4e-update-mail-and-index)" || true