Update mu4e to use octicons symbols instead of material design

Remove flags from mu4e listing view
This commit is contained in:
Evie Litherland-Smith 2024-03-02 12:56:25 +00:00
parent fca17fc37a
commit fefca04bfb

View file

@ -46,8 +46,7 @@
(mu4e-headers-fields (mu4e-headers-fields
'((:human-date . 8) '((:human-date . 8)
(:from . 24) (:from . 24)
(:subject . 64) (:subject)))
(:flags)))
(mu4e-headers-visible-flags (mu4e-headers-visible-flags
'(draft '(draft
flagged flagged
@ -113,35 +112,35 @@
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(require 'mu4e-modeline) (require 'mu4e-modeline)
(setq mu4e-modeline-all-read '("R:" . "󰑇 ") (setq mu4e-modeline-all-read '("R:" . " ")
mu4e-modeline-all-clear '("C:" . "󰚭 ") mu4e-modeline-all-clear '("C:" . " ")
mu4e-modeline-new-items '("N:" . "󰎔 ") mu4e-modeline-new-items '("N:" . " ")
mu4e-modeline-unread-items '("U:" . "󰶊 ")) mu4e-modeline-unread-items '("U:" . " "))
(mu4e-modeline-mode +1)) (mu4e-modeline-mode +1))
#+end_src #+end_src
** Headers mode glyphs ** Headers mode glyphs
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(setq mu4e-search-full-label '("F" . "󱊖 ") (setq mu4e-search-full-label '("F" . " ")
mu4e-search-hide-label '("H" . "󰘓 ") mu4e-search-hide-label '("H" . " ")
mu4e-search-related-label '("R" . "󰻧 ") mu4e-search-related-label '("R" . " ")
mu4e-search-skip-duplicates-label '("D" . "󰆑 ") mu4e-search-skip-duplicates-label '("D" . " ")
mu4e-search-threaded-label'("T" . "󱇫 ") mu4e-search-threaded-label'("T" . " ")
mu4e-headers-draft-mark '("D" . "󰻣 ") mu4e-headers-draft-mark '("D" . " ")
mu4e-headers-flagged-mark '("F" . "󰈻 ") mu4e-headers-flagged-mark '("F" . " ")
mu4e-headers-unread-mark '("u" . "󰶊 ") mu4e-headers-unread-mark '("u" . " ")
mu4e-headers-passed-mark '("P" . "󱃜 ") mu4e-headers-passed-mark '("P" . " ")
mu4e-headers-replied-mark '("R" . "󱃚 ") mu4e-headers-replied-mark '("R" . " ")
mu4e-headers-trashed-mark '("T" . "󰩹 ") mu4e-headers-trashed-mark '("T" . " ")
mu4e-headers-attach-mark '("a" . "󰁦 ") mu4e-headers-attach-mark '("a" . " ")
mu4e-headers-calendar-mark '("c" . "󰃭 ") mu4e-headers-calendar-mark '("c" . " ")
mu4e-headers-encrypted-mark '("x" . "󰇱 ") mu4e-headers-encrypted-mark '("x" . " ")
mu4e-headers-signed-mark '("s" . "󰷻 ") mu4e-headers-signed-mark '("s" . " ")
mu4e-headers-list-mark '("l" . "󰻧 ") mu4e-headers-list-mark '("l" . " ")
mu4e-headers-personal-mark '("p" . "󰍡 ") mu4e-headers-personal-mark '("p" . " ")
mu4e-headers-seen-mark '("S" . "󰑇 ") mu4e-headers-seen-mark '("S" . " ")
mu4e-headers-new-mark '("N" . "󰎔 ") mu4e-headers-new-mark '("N" . " ")
mu4e-headers-from-or-to-prefix '(" " . "To ") mu4e-headers-from-or-to-prefix '(" " . "To ")
mu4e-headers-thread-root-prefix '("* " . "* ") mu4e-headers-thread-root-prefix '("* " . "* ")
mu4e-headers-thread-duplicate-prefix '("= " . "= ") mu4e-headers-thread-duplicate-prefix '("= " . "= ")
@ -158,7 +157,7 @@
#+begin_src emacs-lisp #+begin_src emacs-lisp
(with-eval-after-load 'mu4e (with-eval-after-load 'mu4e
(setq mu4e-marks '((refile :char (setq mu4e-marks '((refile :char
("r" . "󰀼 ") ("r" . " ")
:prompt "refile" :dyn-target :prompt "refile" :dyn-target
(lambda (lambda
(target msg) (target msg)
@ -170,7 +169,7 @@
(mu4e--mark-check-target target) (mu4e--mark-check-target target)
"-N"))) "-N")))
(delete :char (delete :char
("D" . "󰗨 ") ("D" . " ")
:prompt "Delete" :show-target :prompt "Delete" :show-target
(lambda (lambda
(target) (target)
@ -180,7 +179,7 @@
(docid msg target) (docid msg target)
(mu4e--server-remove docid))) (mu4e--server-remove docid)))
(flag :char (flag :char
("+" . "󰈻 ") ("+" . " ")
:prompt "+flag" :show-target :prompt "+flag" :show-target
(lambda (lambda
(target) (target)
@ -190,7 +189,7 @@
(docid msg target) (docid msg target)
(mu4e--server-move docid nil "+F-u-N"))) (mu4e--server-move docid nil "+F-u-N")))
(move :char (move :char
("m" . "󰪹 ") ("m" . " ")
:prompt "move" :ask-target mu4e--mark-get-move-target :action :prompt "move" :ask-target mu4e--mark-get-move-target :action
(lambda (lambda
(docid msg target) (docid msg target)
@ -198,7 +197,7 @@
(mu4e--mark-check-target target) (mu4e--mark-check-target target)
"-N"))) "-N")))
(read :char (read :char
("!" . "󰑇 ") ("!" . " ")
:prompt "!read" :show-target :prompt "!read" :show-target
(lambda (lambda
(target) (target)
@ -208,7 +207,7 @@
(docid msg target) (docid msg target)
(mu4e--server-move docid nil "+S-u-N"))) (mu4e--server-move docid nil "+S-u-N")))
(trash :char (trash :char
("d" . "󰆴 ") ("d" . " ")
:prompt "dtrash" :dyn-target :prompt "dtrash" :dyn-target
(lambda (lambda
(target msg) (target msg)
@ -220,7 +219,7 @@
(mu4e--mark-check-target target) (mu4e--mark-check-target target)
"+T-N"))) "+T-N")))
(unflag :char (unflag :char
("-" . "󱣮 ") ("-" . " ")
:prompt "-unflag" :show-target :prompt "-unflag" :show-target
(lambda (lambda
(target) (target)
@ -230,7 +229,7 @@
(docid msg target) (docid msg target)
(mu4e--server-move docid nil "-F-N"))) (mu4e--server-move docid nil "-F-N")))
(untrash :char (untrash :char
("=" . "󱂧 ") ("=" . " ")
:prompt "=untrash" :show-target :prompt "=untrash" :show-target
(lambda (lambda
(target) (target)
@ -240,7 +239,7 @@
(docid msg target) (docid msg target)
(mu4e--server-move docid nil "-T"))) (mu4e--server-move docid nil "-T")))
(unread :char (unread :char
("?" . "󰮒 ") ("?" . " ")
:prompt "?unread" :show-target :prompt "?unread" :show-target
(lambda (lambda
(target) (target)
@ -252,7 +251,7 @@
(unmark :char " " :prompt "unmark" :action (unmark :char " " :prompt "unmark" :action
(mu4e-error "No action for unmarking")) (mu4e-error "No action for unmarking"))
(action :char (action :char
("a" . "󰋘 ") ("a" . " ")
:prompt "action" :ask-target :prompt "action" :ask-target
(lambda nil (lambda nil
(mu4e-read-option "Action: " mu4e-headers-actions)) (mu4e-read-option "Action: " mu4e-headers-actions))
@ -264,7 +263,7 @@
(mu4e~headers-goto-docid docid) (mu4e~headers-goto-docid docid)
(mu4e-headers-action actionfunc))))) (mu4e-headers-action actionfunc)))))
(something :char (something :char
("*" . "󱗿 ") ("*" . " ")
:prompt "*something" :action :prompt "*something" :action
(mu4e-error "No action for deferred mark"))))) (mu4e-error "No action for deferred mark")))))
#+end_src #+end_src