From 50d9ded24c661104ed5787ca9ef64fefbaf0b075 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Mon, 15 Jul 2024 10:06:20 -0500 Subject: [PATCH] using nu in vterm and some lil mu updates --- README.org | 9 ++++++--- init.el | 25 ++++++------------------- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/README.org b/README.org index 35c59947..0c4637dc 100644 --- a/README.org +++ b/README.org @@ -4168,13 +4168,14 @@ Ledger mode (:maildir "/office/Inbox" :key ?w) (:maildir "/office/Junk Email" :key ?j) (:maildir "/office/INBOX/Website Forms" :key ?f) + (:maildir "/office/Inbox/Money" :key ?m) (:maildir "/office/Sent Items" :key ?s))) ;; (add-to-list mu4e-headers-actions ("org capture message" . mu4e-org-store-and-capture)) (setq mu4e-bookmarks '((:name "Unread messages" - :query "flag:unread AND NOT flag:trashed AND NOT maildir:\"/outlook/Junk\" AND NOT maildir:\"/office/Junk Email\" AND NOT maildir:\"/outlook/Deleted\" AND NOT maildir:\"/office/Deleted Items\" AND NOT maildir:\"/office/Archive\" AND NOT maildir:\"/outlook/Archive\" AND NOT maildir:\"/cochrun/Archive\" AND NOT maildir:\"/cochrun/Junk\" AND NOT flag:list" + :query "flag:unread AND NOT flag:trashed AND NOT maildir:\"/outlook/Junk\" AND NOT maildir:\"/office/Junk Email\"0 AND NOT maildir:\"/outlook/Deleted\" AND NOT maildir:\"/office/Deleted Items\" AND NOT maildir:\"/office/Archive\" AND NOT maildir:\"/office/INBOX/Website Forms\" AND NOT maildir:\"/outlook/Archive\" AND NOT maildir:\"/cochrun/Archive\" AND NOT maildir:\"/cochrun/Junk\" AND NOT flag:list" :key 117) (:name "Today's messages" :query "date:today..now" @@ -4187,7 +4188,7 @@ Ledger mode :query "mime:image/*" :key 112) (:name "Lists" - :query "flag:list" + :query "flag:list AND NOT flag:trashed" :key 108))) (setq @@ -4243,6 +4244,8 @@ Ledger mode :states 'normal :keymaps 'override "om" 'mu4e) + (general-def 'normal mu4e-headers-mode-map + "f" 'mu4e-headers-mark-for-flag) (general-def 'normal mu4e-view-mode-map "ga" 'mu4e-view-save-attachments "q" 'mu4e-view-quit)) @@ -4584,7 +4587,7 @@ Emulate a terminal ** Vterm #+begin_src emacs-lisp (setq vterm-buffer-name-string "vterm %s" - vterm-shell "/run/current-system/sw/bin/zsh") + vterm-shell "/run/current-system/sw/bin/nu") (defun chris/vterm-setup () "Setup vterm with my preferred settings" (display-line-numbers-mode -1)) diff --git a/init.el b/init.el index 2e8aa59f..a31ed588 100644 --- a/init.el +++ b/init.el @@ -3025,13 +3025,14 @@ targets." (:maildir "/office/Inbox" :key ?w) (:maildir "/office/Junk Email" :key ?j) (:maildir "/office/INBOX/Website Forms" :key ?f) + (:maildir "/office/Inbox/Money" :key ?m) (:maildir "/office/Sent Items" :key ?s))) ;; (add-to-list mu4e-headers-actions ("org capture message" . mu4e-org-store-and-capture)) (setq mu4e-bookmarks '((:name "Unread messages" - :query "flag:unread AND NOT flag:trashed AND NOT maildir:\"/outlook/Junk\" AND NOT maildir:\"/office/Junk Email\" AND NOT maildir:\"/outlook/Deleted\" AND NOT maildir:\"/office/Deleted Items\" AND NOT maildir:\"/office/Archive\" AND NOT maildir:\"/outlook/Archive\" AND NOT maildir:\"/cochrun/Archive\" AND NOT maildir:\"/cochrun/Junk\" AND NOT flag:list" + :query "flag:unread AND NOT flag:trashed AND NOT maildir:\"/outlook/Junk\" AND NOT maildir:\"/office/Junk Email\"0 AND NOT maildir:\"/outlook/Deleted\" AND NOT maildir:\"/office/Deleted Items\" AND NOT maildir:\"/office/Archive\" AND NOT maildir:\"/office/INBOX/Website Forms\" AND NOT maildir:\"/outlook/Archive\" AND NOT maildir:\"/cochrun/Archive\" AND NOT maildir:\"/cochrun/Junk\" AND NOT flag:list" :key 117) (:name "Today's messages" :query "date:today..now" @@ -3044,7 +3045,7 @@ targets." :query "mime:image/*" :key 112) (:name "Lists" - :query "flag:list" + :query "flag:list AND NOT flag:trashed" :key 108))) (setq @@ -3100,6 +3101,8 @@ targets." :states 'normal :keymaps 'override "om" 'mu4e) + (general-def 'normal mu4e-headers-mode-map + "f" 'mu4e-headers-mark-for-flag) (general-def 'normal mu4e-view-mode-map "ga" 'mu4e-view-save-attachments "q" 'mu4e-view-quit)) @@ -3369,7 +3372,7 @@ targets." (add-hook 'eshell-load-hook #'eat-eshell-mode)) (setq vterm-buffer-name-string "vterm %s" - vterm-shell "/run/current-system/sw/bin/zsh") + vterm-shell "/run/current-system/sw/bin/nu") (defun chris/vterm-setup () "Setup vterm with my preferred settings" (display-line-numbers-mode -1)) @@ -3976,19 +3979,3 @@ interfere with the default `bongo-playlist-buffer'." gcmh-verbose nil)) (setq warning-suppress-types '((comp))) -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(pdf-misc-print-program-args - '("-o media=Letter" "-o fitplot" "-o sides=two-sided-long-edge")) - '(pdf-misc-print-program-executable "lpr") - '(safe-local-variable-values '((rustic-rustfmt-args . "--edition 2021")))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(markdown-code-face ((t (:inherit org-block)))) - '(org-modern-tag ((t :background "#9aedfe" :foreground "#282a36"))))