Finally trying mu4e again (geary had some issues)

This commit is contained in:
Emmet 2023-11-05 16:20:52 -06:00
parent a695931a3d
commit 00689dae5a
5 changed files with 115 additions and 43 deletions

View file

@ -49,7 +49,6 @@
xournalpp
glib
gnome.nautilus
gnome.geary
gnome.gnome-calendar
gnome.seahorse
gnome.gnome-maps

View file

@ -1201,6 +1201,30 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
"k" 'evil-previous-visual-line
"q" 'helpful-kill-buffers)
;;;------ helpful configuration ------;;;
(add-load-path! "~/.nix-profile/share/emacs/site-lisp/elpa/mu4e-1.10.7")
(require 'mu4e-contrib)
(setq mu4e-sent-folder "/Sent")
(setq mu4e-drafts-folder "/Drafts")
(setq mu4e-trash-folder "/Trash")
(map! :map 'mu4e-main-mode-map :desc "Jump to maildir" :ge "J" #'mu4e-search-maildir)
(map! :map 'mu4e-main-mode-map :desc "Next line" :ge "j" #'evil-next-visual-line)
(map! :map 'mu4e-main-mode-map :desc "Prev line" :ge "k" #'evil-previous-visual-line)
(map! :map 'mu4e-headers-mode-map :desc "Jump to maildir" :ge "J" #'mu4e-search-maildir)
(map! :map 'mu4e-headers-mode-map :desc "Next line" :ge "j" #'evil-next-visual-line)
(map! :map 'mu4e-headers-mode-map :desc "Prev line" :ge "k" #'evil-previous-visual-line)
(map! :map 'mu4e-view-mode-map :desc "Jump to maildir" :ge "J" #'mu4e-search-maildir)
(map! :map 'mu4e-view-mode-map :desc "Next line" :ge "j" #'evil-next-visual-line)
(map! :map 'mu4e-view-mode-map :desc "Prev line" :ge "k" #'evil-previous-visual-line)
(setq mu4e-headers-fields
'((:account-stripe . 1)
(:human-date . 12)
(:flags . 6)
(:maildir . 30)
(:from-or-to . 20)
(:subject)))
(load "~/.emacs.d/mu4e-private.el")
;;;-- Load emacs direnv;;;--
(require 'direnv)
(direnv-mode)

View file

@ -40,26 +40,37 @@ in
};
home.packages = with pkgs; [
nil
nixfmt
git
file
nodejs
wmctrl
jshon
aria
hledger
hunspell hunspellDicts.en_US-large
pandoc
nodePackages.mermaid-cli
(python3.withPackages (p: with p; [
pandas
requests
pyqt6 sip qtpy qt6.qtwebengine epc lxml pyqt6-webengine
pysocks
#pymupdf TODO pymupdf fails to build
markdown
]))];
nil
nixfmt
git
file
nodejs
wmctrl
jshon
aria
hledger
hunspell hunspellDicts.en_US-large
pandoc
nodePackages.mermaid-cli
(pkgs.mu.override { emacs = emacs29-pgtk; })
emacsPackages.mu4e
isync
msmtp
(python3.withPackages (p: with p; [
pandas
requests
pyqt6 sip qtpy qt6.qtwebengine epc lxml pyqt6-webengine
pysocks
#pymupdf TODO pymupdf fails to build
markdown
]))
];
services.mbsync = {
enable = true;
package = pkgs.isync;
frequency = "*:0/5";
};
home.file.".emacs.d/eaf" = {
source = "${eaf}";

View file

@ -19,6 +19,7 @@
- [[#tab-bar-configuration][Tab Bar Configuration]]
- [[#focus-mode-configuration][Focus Mode Configuration]]
- [[#helpful-mode-configuration][Helpful Mode Configuration]]
- [[#mu4e-configuration][mu4e Configuration]]
- [[#eaf][EAF]]
- [[#direnv][Direnv]]
- [[#projectile][Projectile]]
@ -1417,6 +1418,32 @@ I don't have this active right now since it's kinda weird with pgtk...
"k" 'evil-previous-visual-line
"q" 'helpful-kill-buffers)
#+END_SRC
** mu4e Configuration
#+BEGIN_SRC emacs-lisp :tangle config.el
;;;------ helpful configuration ------;;;
(add-load-path! "~/.nix-profile/share/emacs/site-lisp/elpa/mu4e-1.10.7")
(require 'mu4e-contrib)
(setq mu4e-sent-folder "/Sent")
(setq mu4e-drafts-folder "/Drafts")
(setq mu4e-trash-folder "/Trash")
(map! :map 'mu4e-main-mode-map :desc "Jump to maildir" :ge "J" #'mu4e-search-maildir)
(map! :map 'mu4e-main-mode-map :desc "Next line" :ge "j" #'evil-next-visual-line)
(map! :map 'mu4e-main-mode-map :desc "Prev line" :ge "k" #'evil-previous-visual-line)
(map! :map 'mu4e-headers-mode-map :desc "Jump to maildir" :ge "J" #'mu4e-search-maildir)
(map! :map 'mu4e-headers-mode-map :desc "Next line" :ge "j" #'evil-next-visual-line)
(map! :map 'mu4e-headers-mode-map :desc "Prev line" :ge "k" #'evil-previous-visual-line)
(map! :map 'mu4e-view-mode-map :desc "Jump to maildir" :ge "J" #'mu4e-search-maildir)
(map! :map 'mu4e-view-mode-map :desc "Next line" :ge "j" #'evil-next-visual-line)
(map! :map 'mu4e-view-mode-map :desc "Prev line" :ge "k" #'evil-previous-visual-line)
(setq mu4e-headers-fields
'((:account-stripe . 1)
(:human-date . 12)
(:flags . 6)
(:maildir . 30)
(:from-or-to . 20)
(:subject)))
(load "~/.emacs.d/mu4e-private.el")
#+END_SRC
** EAF
EAF doesn't work on Wayland :(
@ -1728,7 +1755,7 @@ This section is the [[./init.el][init.el]] section, which controls which Doom mo
;;zig ; C, but simpler
:email
;;(mu4e +org)
(mu4e +org)
;;notmuch
;;(wanderlust +gmail)
@ -1841,26 +1868,37 @@ in
};
home.packages = with pkgs; [
nil
nixfmt
git
file
nodejs
wmctrl
jshon
aria
hledger
hunspell hunspellDicts.en_US-large
pandoc
nodePackages.mermaid-cli
(python3.withPackages (p: with p; [
pandas
requests
pyqt6 sip qtpy qt6.qtwebengine epc lxml pyqt6-webengine
pysocks
#pymupdf TODO pymupdf fails to build
markdown
]))];
nil
nixfmt
git
file
nodejs
wmctrl
jshon
aria
hledger
hunspell hunspellDicts.en_US-large
pandoc
nodePackages.mermaid-cli
(pkgs.mu.override { emacs = emacs29-pgtk; })
emacsPackages.mu4e
isync
msmtp
(python3.withPackages (p: with p; [
pandas
requests
pyqt6 sip qtpy qt6.qtwebengine epc lxml pyqt6-webengine
pysocks
#pymupdf TODO pymupdf fails to build
markdown
]))
];
services.mbsync = {
enable = true;
package = pkgs.isync;
frequency = "*:0/5";
};
home.file.".emacs.d/eaf" = {
source = "${eaf}";

View file

@ -158,7 +158,7 @@
;;zig ; C, but simpler
:email
;;(mu4e +org)
(mu4e +org)
;;notmuch
;;(wanderlust +gmail)