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
|
#+begin_src emacs-lisp
|
||||||
(setq +mu4e-backend nil)
|
(setq +mu4e-backend nil)
|
||||||
(after! mu4e
|
(after! mu4e
|
||||||
(setq mu4e-get-mail-command "systemctl start --user mbsync.service"
|
(setq mu4e-get-mail-command "mbsync -a"
|
||||||
mu4e-update-interval nil))
|
mu4e-update-interval 300))
|
||||||
#+end_src
|
#+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]]
|
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
|
#+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
|
Now setup notifications
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package! mu4e-alert
|
(use-package! mu4e-alert
|
||||||
|
:demand t
|
||||||
:config
|
:config
|
||||||
(mu4e-alert-set-default-style 'libnotify)
|
(mu4e-alert-set-default-style 'libnotify)
|
||||||
(setq mu4e-alert-interesting-mail-query
|
(setq mu4e-alert-interesting-mail-query
|
||||||
(concat
|
(concat
|
||||||
"flag:unread"
|
"flag:unread"
|
||||||
" AND NOT flag:trashed"
|
" AND NOT flag:trashed"
|
||||||
" AND NOT maildir:"
|
" AND maildir:"
|
||||||
"\"/nathan@mccarty.io/Spam\""
|
"\"/nathan@mccarty.io/Inbox\""))
|
||||||
"\"/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)
|
|
||||||
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
|
(add-hook 'after-init-hook #'mu4e-alert-enable-notifications)
|
||||||
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display))
|
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** [[https://github.com/stsquad/emacs_chrome][Edit with Emacs]]
|
** [[https://github.com/stsquad/emacs_chrome][Edit with Emacs]]
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package! edit-server
|
(use-package! edit-server
|
||||||
|
|
Loading…
Reference in New Issue