Add mail update routines for mowedline
This commit is contained in:
parent
739f89bace
commit
5c05caf196
1 changed files with 6 additions and 2 deletions
|
@ -182,6 +182,10 @@ But only if it is a maildir inbox."
|
||||||
(when (and (boundp 'gnus-newsgroup-name) gnus-newsgroup-name)
|
(when (and (boundp 'gnus-newsgroup-name) gnus-newsgroup-name)
|
||||||
(awesome-update-mailbox gnus-newsgroup-name)))
|
(awesome-update-mailbox gnus-newsgroup-name)))
|
||||||
|
|
||||||
|
(defun update-mailcount ()
|
||||||
|
"Update the mailcount in the wm."
|
||||||
|
(shell-command-to-string "new-mail-mowedline"))
|
||||||
|
|
||||||
(defun oni:before-save-func ()
|
(defun oni:before-save-func ()
|
||||||
"Function for `before-save-hook'."
|
"Function for `before-save-hook'."
|
||||||
(if (eq major-mode 'html-mode)
|
(if (eq major-mode 'html-mode)
|
||||||
|
@ -1305,8 +1309,8 @@ from myaethon2.core.decorators import (
|
||||||
(add-hook 'diary-display-hook 'oni:diary-display-func)
|
(add-hook 'diary-display-hook 'oni:diary-display-func)
|
||||||
(add-hook 'flycheck-mode-hook #'flycheck-cask-setup)
|
(add-hook 'flycheck-mode-hook #'flycheck-cask-setup)
|
||||||
(add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict)
|
(add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict)
|
||||||
(add-hook 'gnus-exit-group-hook 'awesome-update-current-mailbox)
|
(add-hook 'gnus-exit-group-hook 'update-mailcount)
|
||||||
(add-hook 'gnus-exit-gnus-hook 'awesome-update-current-mailbox)
|
(add-hook 'gnus-exit-gnus-hook 'update-mailcount)
|
||||||
(add-hook 'haskell-mode-hook 'oni:haskell-mode-func)
|
(add-hook 'haskell-mode-hook 'oni:haskell-mode-func)
|
||||||
(add-hook 'outline-minor-mode-hook #'oni:set-tab-maybe-toggle-outline)
|
(add-hook 'outline-minor-mode-hook #'oni:set-tab-maybe-toggle-outline)
|
||||||
(add-hook 'scheme-mode-hook (lambda () (setq ac-sources '(ac-source-geiser))))
|
(add-hook 'scheme-mode-hook (lambda () (setq ac-sources '(ac-source-geiser))))
|
||||||
|
|
Loading…
Reference in a new issue