Tweak mu4e
This commit is contained in:
parent
de1f8fb95b
commit
96a09e8501
|
@ -347,7 +347,15 @@ work if it thinks it needs to."
|
|||
(mu4e-trash-folder . "/nathan@mccarty.io/Trash")
|
||||
(mu4e-refile-folder . "/nathan@mccarty.io/Archive")
|
||||
(smtpmail-smtp-user . "nathan@mccarty.io"))
|
||||
t))
|
||||
t)
|
||||
(add-to-list 'mu4e-bookmarks
|
||||
'(:name "Inbox - nathan@mccarty.io"
|
||||
:key ?m
|
||||
:query "maildir:\"/nathan@mccarty.io/Inbox\" AND NOT flag:trashed")))
|
||||
|
||||
(after! mu4e
|
||||
(mu4e-alert-enable-mode-line-display))
|
||||
|
||||
(setq +mu4e-backend nil)
|
||||
(after! mu4e
|
||||
mu4e-get-mail-command "true")
|
||||
|
|
|
@ -552,10 +552,20 @@ Tell it where our account's stuff is
|
|||
(mu4e-trash-folder . "/nathan@mccarty.io/Trash")
|
||||
(mu4e-refile-folder . "/nathan@mccarty.io/Archive")
|
||||
(smtpmail-smtp-user . "nathan@mccarty.io"))
|
||||
t))
|
||||
t)
|
||||
(add-to-list 'mu4e-bookmarks
|
||||
'(:name "Inbox - nathan@mccarty.io"
|
||||
:key ?m
|
||||
:query "maildir:\"/nathan@mccarty.io/Inbox\" AND NOT flag:trashed")))
|
||||
#+end_src
|
||||
Tell it to enable the modeline display
|
||||
#+begin_src emacs-lisp
|
||||
(after! mu4e
|
||||
(mu4e-alert-enable-mode-line-display))
|
||||
#+end_src
|
||||
Tell it not to update the mail itself, we have a systemd unit for that
|
||||
#+begin_src emacs-lisp
|
||||
(setq +mu4e-backend nil)
|
||||
(after! mu4e
|
||||
mu4e-get-mail-command "true")
|
||||
#+end_src
|
||||
|
|
|
@ -87,7 +87,7 @@ with lib; with nLib; {
|
|||
})
|
||||
# JavaScript/TypeScript Development
|
||||
(mkIf devel.js {
|
||||
home.packages = with unstable; [
|
||||
home.packages = with pkgs; [
|
||||
nodejs
|
||||
yarn
|
||||
nodePackages.typescript
|
||||
|
|
|
@ -77,7 +77,14 @@ with lib; {
|
|||
};
|
||||
services.mbsync = {
|
||||
enable = true;
|
||||
postExec = "${pkgs.mu}/bin/mu index";
|
||||
# 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
|
||||
postExec =
|
||||
if config.nathan.programs.emacs.service
|
||||
then
|
||||
''${config.nathan.programs.emacs.package}/bin/emacsclient --eval "(mu4e-update-mail-and-index t)"''
|
||||
else
|
||||
"${pkgs.mu}/bin/mu index";
|
||||
};
|
||||
# Setup mu for indexing emails
|
||||
programs.mu = {
|
||||
|
|
Loading…
Reference in New Issue