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-trash-folder . "/nathan@mccarty.io/Trash")
|
||||||
(mu4e-refile-folder . "/nathan@mccarty.io/Archive")
|
(mu4e-refile-folder . "/nathan@mccarty.io/Archive")
|
||||||
(smtpmail-smtp-user . "nathan@mccarty.io"))
|
(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
|
(after! mu4e
|
||||||
(mu4e-alert-enable-mode-line-display))
|
(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-trash-folder . "/nathan@mccarty.io/Trash")
|
||||||
(mu4e-refile-folder . "/nathan@mccarty.io/Archive")
|
(mu4e-refile-folder . "/nathan@mccarty.io/Archive")
|
||||||
(smtpmail-smtp-user . "nathan@mccarty.io"))
|
(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
|
#+end_src
|
||||||
Tell it to enable the modeline display
|
Tell it to enable the modeline display
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(after! mu4e
|
(after! mu4e
|
||||||
(mu4e-alert-enable-mode-line-display))
|
(mu4e-alert-enable-mode-line-display))
|
||||||
#+end_src
|
#+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
|
# JavaScript/TypeScript Development
|
||||||
(mkIf devel.js {
|
(mkIf devel.js {
|
||||||
home.packages = with unstable; [
|
home.packages = with pkgs; [
|
||||||
nodejs
|
nodejs
|
||||||
yarn
|
yarn
|
||||||
nodePackages.typescript
|
nodePackages.typescript
|
||||||
|
|
|
@ -77,7 +77,14 @@ with lib; {
|
||||||
};
|
};
|
||||||
services.mbsync = {
|
services.mbsync = {
|
||||||
enable = true;
|
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
|
# Setup mu for indexing emails
|
||||||
programs.mu = {
|
programs.mu = {
|
||||||
|
|
Loading…
Reference in New Issue