From da314f270fbe8c9ea0b9178fd17fc1c50b62126a Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 23 Jan 2025 13:06:02 -0500 Subject: mu4e-goodies --- .gitmodules | 3 +++ dot_emacs.d/lisp/mu4e-goodies | 1 + 2 files changed, 4 insertions(+) create mode 160000 dot_emacs.d/lisp/mu4e-goodies diff --git a/.gitmodules b/.gitmodules index cd7e4fc..c9a8f13 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "dot_zsh/powerlevel10k"] path = dot_zsh/powerlevel10k url = https://github.com/romkatv/powerlevel10k.git +[submodule "dot_emacs.d/lisp/mu4e-goodies"] + path = dot_emacs.d/lisp/mu4e-goodies + url = git@github.com:panjie/mu4e-goodies.git diff --git a/dot_emacs.d/lisp/mu4e-goodies b/dot_emacs.d/lisp/mu4e-goodies new file mode 160000 index 0000000..254768e --- /dev/null +++ b/dot_emacs.d/lisp/mu4e-goodies @@ -0,0 +1 @@ +Subproject commit 254768ec469bb9de6c7051b62faeb5dda56d15fa -- cgit v1.2.3 From 6d483fd8d6d5a3ba06761c4ad24874f822b95c3d Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 23 Jan 2025 13:12:30 -0500 Subject: more mu4e config --- dot_emacs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dot_emacs b/dot_emacs index 8fe91b8..a5bc8ba 100644 --- a/dot_emacs +++ b/dot_emacs @@ -556,6 +556,9 @@ Otherwise split the current paragraph into one sentence per line." (message-citation-line-function 'message-insert-formatted-citation-line) (message-send-mail-function 'message-send-mail-with-sendmail)) +(use-package message-view-patch + :ensure t) + (use-package minibuffer :config (add-to-list 'completion-styles 'substring) @@ -696,6 +699,9 @@ Otherwise split the current paragraph into one sentence per line." ("/gmail/INBOX" . ?g) ("/queensu/INBOX" . ?q)))) +;; provided through git/chezmoi +(use-package mu4e-goodies-tags) + (use-package oauth2 :ensure t) -- cgit v1.2.3 From 962fbba025e0ef150269a273ab8361afe542986b Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 23 Jan 2025 13:12:51 -0500 Subject: mbsync always pulls from hades to avoid issues with replication --- dot_mbsyncrc.tmpl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dot_mbsyncrc.tmpl b/dot_mbsyncrc.tmpl index 864974c..97e281b 100644 --- a/dot_mbsyncrc.tmpl +++ b/dot_mbsyncrc.tmpl @@ -34,7 +34,7 @@ AuthMechs PLAIN SSLType IMAPS IMAPAccount rak -Host imap.rak.ac +Host hades.rak.ac User rak Pass {{ .password.rakac }} AuthMechs PLAIN @@ -152,6 +152,14 @@ Expunge Near Patterns * !Archive !Virtual !Virtual/* !INBOX !Lists !Lists/* Sync All +Channel rak-archive +Far :rak-remote: +Near :rak-maildir: +Create Both +Expunge Near +Patterns Archive +Sync All + Group rak Channel rak-inbox Channel rak-lists -- cgit v1.2.3 From 92955c1ab269b46b369b1eea3cdb73660c349785 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 13 Feb 2025 11:10:50 -0500 Subject: Move focused groups around in sway --- dot_config/sway/config.d/20_swaysome | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dot_config/sway/config.d/20_swaysome b/dot_config/sway/config.d/20_swaysome index f928bba..4c0846d 100644 --- a/dot_config/sway/config.d/20_swaysome +++ b/dot_config/sway/config.d/20_swaysome @@ -52,10 +52,17 @@ bindsym --to-code { # Move focused container to previous output $mod+Shift+o exec "swaysome prev-output" + # Move focused group to up/down/left/right output + $mod+Ctrl+k exec "sway move workspace to output up" + $mod+Ctrl+j exec "sway move workspace to output down" + $mod+Ctrl+l exec "sway move workspace to output right" + $mod+Ctrl+h exec "sway move workspace to output left" + # Move focused workspace group to next output $mod+Alt+o exec "swaysome workspace-group-next-output" # Move focused workspace group to previous output $mod+Alt+Shift+o exec "swaysome workspace-group-prev-output" + } # Init workspaces for every screen -- cgit v1.2.3 From a9aefc3bb310fe971dd772cce48d87d3b7422f0d Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 13 Feb 2025 11:13:13 -0500 Subject: mu4e config changes to deal with flowed text --- dot_emacs | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/dot_emacs b/dot_emacs index a5bc8ba..fdb3414 100644 --- a/dot_emacs +++ b/dot_emacs @@ -35,6 +35,8 @@ (default-input-method "TeX") (user-full-name "Ryan Kavanagh") (user-mail-address "rak@rak.ac") + (mail-user-agent 'mu4e-user-agent) + (read-mail-command 'mu4e) :custom-face (default ((t (:family "Iosevka"))))) @@ -553,8 +555,13 @@ Otherwise split the current paragraph into one sentence per line." (use-package message :custom + (message-kill-buffer-on-exit t) (message-citation-line-function 'message-insert-formatted-citation-line) - (message-send-mail-function 'message-send-mail-with-sendmail)) + (message-send-mail-function 'message-send-mail-with-sendmail) + :hook + (message-mode . turn-off-auto-fill) + (message-mode . visual-line-mode) + (message-mode . visual-fill-column-mode)) (use-package message-view-patch :ensure t) @@ -683,9 +690,15 @@ Otherwise split the current paragraph into one sentence per line." (message-signature-file . "~/.signature") (sendmail-program . "msmtp"))))) :custom + ;; flowed text in messages + (mu4e-compose-format-flowed t) + ;; This is set to 't' to avoid mail syncing issues when using mbsync (mu4e-change-filenames-when-moving t) + ;; compose messages in new frame + (mu4e-compose-in-new-frame t) + ;; hide long list off addresses from main view and silence warnings ;; about mu4e not recognizing user-mail-address against regexp (mu4e-main-hide-personal-addresses t) @@ -1179,6 +1192,9 @@ If not, issue a warning." :config (add-to-list 'vc-handled-backends 'git)) +(use-package visual-fill-column + :ensure t) + (use-package wc-mode :ensure t) -- cgit v1.2.3