Tweak mu4e
This commit is contained in:
parent
41a02413cb
commit
ddb0043f4c
17
config.org
17
config.org
|
@ -996,8 +996,8 @@ 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
|
||||
(setq mu4e-get-mail-command "systemctl start --user mbsync.service"
|
||||
mu4e-update-interval nil))
|
||||
(setq mu4e-get-mail-command "mbsync -a"
|
||||
mu4e-update-interval 300))
|
||||
#+end_src
|
||||
We need to tell mu4e to rename files when they are moved, or else mbsync will break, see [[https://github.com/djcb/mu/issues/613#issuecomment-166714305][issue]] and [[http://tiborsimko.org/mbsync-duplicate-uid.html][blog post]]
|
||||
#+begin_src emacs-lisp
|
||||
|
@ -1008,24 +1008,19 @@ We need to tell mu4e to rename files when they are moved, or else mbsync will br
|
|||
Now setup notifications
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! mu4e-alert
|
||||
:demand t
|
||||
:config
|
||||
(mu4e-alert-set-default-style 'libnotify)
|
||||
(setq mu4e-alert-interesting-mail-query
|
||||
(concat
|
||||
"flag:unread"
|
||||
" AND NOT flag:trashed"
|
||||
" AND NOT maildir:"
|
||||
"\"/nathan@mccarty.io/Spam\""
|
||||
"\"/nathan@mccarty.io/Folders/Mailing Lists\""
|
||||
"\"/nathan@mccarty.io/Trash\"")))
|
||||
#+end_src
|
||||
|
||||
Add to the modeline and enable nofitications, but only when we are the daemon
|
||||
#+begin_src emacs-lisp
|
||||
(when (daemonp)
|
||||
" AND maildir:"
|
||||
"\"/nathan@mccarty.io/Inbox\""))
|
||||
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
|
||||
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display))
|
||||
#+end_src
|
||||
|
||||
** [[https://github.com/stsquad/emacs_chrome][Edit with Emacs]]
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! edit-server
|
||||
|
|
Loading…
Reference in New Issue