Emacs: Automatically update mu4e, better keybinding, show in doom modeline

This commit is contained in:
Joseph Ferano 2024-02-16 12:29:29 +08:00
parent bde02bf27a
commit 0adcb44a85

View File

@ -241,6 +241,7 @@ Finish up
elm-mode
gdscript-mode
;; Tools
mu4e-alert
dirvish
restclient
disaster
@ -876,6 +877,7 @@ Simple function more quickly align text
(kbd "SPC Bd") 'bookmark-delete
(kbd "SPC mr") 'joe/compile-run
(kbd "SPC mc") 'joe/compile-comp
(kbd "SPC mm") 'mu4e
(kbd "SPC ct") 'joe/consult-theme
(kbd "SPC cl") 'consult-line
(kbd "SPC ci") 'consult-imenu
@ -1780,8 +1782,6 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions.
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e/")
(require 'mu4e)
(evil-global-set-key 'normal (kbd "SPC mm") #'mu4e)
;; Attach files to a message composition buffer by going into `dired'
;; and doing C-c C-m C-a (M-x `gnus-dired-attach').
(require 'gnus-dired) ; does not require `gnus'
@ -1805,6 +1805,8 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions.
(setq message-kill-buffer-on-exit nil)
(setq mu4e-update-interval 10)
(setq mu4e-hide-index-messages 't)
(setq mu4e-completing-read-function 'completing-read)
(setq mu4e-sent-messages-behavior 'sent)
(setq mu4e-context-policy 'pick-first)
@ -1863,6 +1865,8 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions.
'((:maildir "/ferano.io/Inbox" :key ?f)
(:maildir "/gmail/[Gmail]/All Mail" :key ?g)))
(mu4e 't)
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display)
;; (:name "Ferano.io Unread" :query "m:/ferano.io/Inbox AND g:unread" :key ?u)))
#+end_src