emacs: Update mu4e, remove fast folding since it's now a built-in feature
This commit is contained in:
parent
367b17ea20
commit
858d26129b
@ -1842,9 +1842,11 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions.
|
|||||||
#+end_src
|
#+end_src
|
||||||
** Email
|
** Email
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(when (file-exists-p "/usr/share/emacs/site-lisp/mu4e/")
|
(setq mu4e-dir-path "/usr/local/share/emacs/site-lisp/mu4e/")
|
||||||
(add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e/")
|
(when (file-exists-p mu4e-dir-path)
|
||||||
|
(add-to-list 'load-path mu4e-dir-path)
|
||||||
(require 'mu4e)
|
(require 'mu4e)
|
||||||
|
(setq mu4e-use-maildirs-extension nil)
|
||||||
|
|
||||||
;; Attach files to a message composition buffer by going into `dired'
|
;; Attach files to a message composition buffer by going into `dired'
|
||||||
;; and doing C-c C-m C-a (M-x `gnus-dired-attach').
|
;; and doing C-c C-m C-a (M-x `gnus-dired-attach').
|
||||||
@ -1933,46 +1935,12 @@ odd looking ~'(t .t)~ is for specifying a default for all other actions.
|
|||||||
'((:maildir "/ferano.io/Inbox" :key ?f)
|
'((:maildir "/ferano.io/Inbox" :key ?f)
|
||||||
(:maildir "/gmail/Inbox" :key ?g)))
|
(:maildir "/gmail/Inbox" :key ?g)))
|
||||||
|
|
||||||
(mu4e 't)
|
(add-hook 'mu4e-thread-mode-hook #'mu4e-thread-fold-all)
|
||||||
|
;; (mu4e 't)
|
||||||
(add-hook 'after-init-hook #'mu4e-alert-enable-mode-line-display))
|
(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)))
|
;; (:name "Ferano.io Unread" :query "m:/ferano.io/Inbox AND g:unread" :key ?u)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Fold threads. This is a gist provided by Rougier [[https://gist.github.com/rougier/98e83fb50e19fb73fe34a7ecc5fc1ccc][here]]. His other package is
|
|
||||||
[[https://github.com/rougier/mu4e-thread-folding][mu4e-thread-folding]] but they work slightly differently. Code for the latter will
|
|
||||||
be kept here commented out in case we want to try it again.
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
|
|
||||||
(when (file-exists-p "/usr/share/emacs/site-lisp/mu4e/")
|
|
||||||
(load-file "/home/joe/Dotfiles/.config/emacs/elisp/mu4e-fast-folding.el")
|
|
||||||
|
|
||||||
(evil-define-key 'normal mu4e-headers-mode-map (kbd "TAB")
|
|
||||||
#'mu4e-fast-folding-thread-toggle)
|
|
||||||
|
|
||||||
(evil-define-key 'normal mu4e-headers-mode-map (kbd "<backtab>")
|
|
||||||
#'mu4e-fast-folding-thread-toggle-all))
|
|
||||||
|
|
||||||
;; (load-file "/home/joe/Dotfiles/.config/emacs/elisp/mu4e-thread-folding.el")
|
|
||||||
;; (require 'mu4e-fast-folding)
|
|
||||||
;; (add-to-list 'mu4e-header-info-custom
|
|
||||||
;; '(:empty . (:name "Empty"
|
|
||||||
;; :shortname ""
|
|
||||||
;; :function (lambda (msg) " "))))
|
|
||||||
;; (setq mu4e-headers-fields '((:empty . 2)
|
|
||||||
;; (:human-date . 12)
|
|
||||||
;; (:flags . 6)
|
|
||||||
;; (:mailing-list . 10)
|
|
||||||
;; (:from . 22)
|
|
||||||
;; (:subject . nil)))
|
|
||||||
;; (evil-define-key 'normal mu4e-headers-mode-map (kbd "TAB")
|
|
||||||
;; #'mu4e-headers-fold-at-point)
|
|
||||||
|
|
||||||
;; (evil-define-key 'normal mu4e-headers-mode-map (kbd "<backtab>")
|
|
||||||
;; #'mu4e-headers-unfold-at-point)
|
|
||||||
|
|
||||||
;; (mu4e-thread-folding-mode +1)
|
|
||||||
#+end_src
|
|
||||||
** Avy
|
** Avy
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user