Add mu 1.10.0 patch
This commit is contained in:
parent
3449d67256
commit
ea0d72aeca
2 changed files with 36 additions and 14 deletions
|
@ -115,6 +115,9 @@ in
|
|||
:ensure nil
|
||||
:commands (mu4e mu4e-update-index)
|
||||
:after (vertico)
|
||||
:init
|
||||
(defun mu4e--main-action-str (title cmd) "")
|
||||
(defalias 'mu4e~view-quit-buffer 'mu4e-view-quit)
|
||||
:hook
|
||||
(mu4e-view-mode . display-line-numbers-mode)
|
||||
(mu4e-view-mode . visual-line-mode)
|
||||
|
@ -122,6 +125,8 @@ in
|
|||
(mu4e-compose-mode . visual-line-mode)
|
||||
(mu4e-compose-mode . (lambda () (setq use-hard-newlines nil)))
|
||||
:custom
|
||||
(mu4e-read-option-use-builtin nil "Don't use builting autocomplete in mu4e")
|
||||
(mu4e-completing-read-function 'completing-read "Use default completing read function")
|
||||
(mu4e-change-filenames-when-moving t "Avoid sync issues with mbsync")
|
||||
(mu4e-maildir "${hmConfig.accounts.email.maildirBasePath}" "Root of the maildir hierarchy")
|
||||
(mu4e-context-policy 'pick-first "Use the first mail context in the list")
|
||||
|
@ -131,7 +136,6 @@ in
|
|||
(fill-flowed-display-column 1000000000000 "Dont fill when decoding flowed messages, let visual-line-mode handle it")
|
||||
(gnus-treat-fill-long-lines nil "Let visual-line-mode handle filling")
|
||||
(mu4e-confirm-quit nil "Don't confirm when quitting")
|
||||
(mu4e-completing-read-function 'completing-read "Use default completing read function")
|
||||
(mu4e-headers-include-related nil "Don't show related messages by default")
|
||||
(mu4e-headers-skip-duplicates nil "Show duplicate emails")
|
||||
(message-kill-buffer-on-exit t "Close buffer when finished with email")
|
||||
|
@ -144,23 +148,12 @@ in
|
|||
(message-send-mail-function 'message-send-mail-with-sendmail "Use sendmail to send mail instead internal smtp")
|
||||
(message-cite-reply-position 'below "Bottom posting is the correct way to reply to email")
|
||||
:config
|
||||
(remove-hook 'mu4e-main-mode-hook 'evil-collection-mu4e-update-main-view)
|
||||
(setq mu4e-contexts (list ${lib.concatStringsSep "\n" (map mkAccountConfig (lib.attrValues hmConfig.accounts.email.accounts))}))
|
||||
(add-to-list
|
||||
'mu4e-bookmarks
|
||||
'(:name "Combined inbox" :query "maildir:/personal/INBOX or maildir:/work/INBOX or maildir:/posteo/INBOX or maildir:/rodekruis-eerstehulp/INBOX" :key ?i)
|
||||
'(:name "Combined inbox" :query "maildir:/personal/INBOX or maildir:/work/INBOX or maildir:/posteo/INBOX or maildir:/rodekruis-eerstehulp/INBOX" :key ?i :favorite t)
|
||||
)
|
||||
(define-advice mu4e--context-ask-user
|
||||
(:around (orig-fun &rest args) mu4e~context-ask-user-completing-read)
|
||||
"Replace `mu4e-read-option` by general-purpose completing-read"
|
||||
(cl-letf (((symbol-function 'mu4e-read-option)
|
||||
(lambda (prompt options)
|
||||
(let* ((prompt (mu4e-format "%s" prompt))
|
||||
(choice (completing-read prompt (cl-mapcar #'car options) nil t))
|
||||
(chosen-el (cl-find-if (lambda (option) (equal choice (car option))) options)))
|
||||
(if chosen-el
|
||||
(cdr chosen-el)
|
||||
(mu4e-warn "Unknown option: '%s'" choice))))))
|
||||
(apply orig-fun args)))
|
||||
(define-skeleton mail/dodona-teacher-reply-skeleton
|
||||
"Inserts a typical reply when someone uses the general form for a Dodona teacher request."
|
||||
"Naam leerkracht: "
|
||||
|
|
29
patches/223229.patch
Normal file
29
patches/223229.patch
Normal file
|
@ -0,0 +1,29 @@
|
|||
From 325fd25b7a78b40cce3dffcff8dd72fee934b94e Mon Sep 17 00:00:00 2001
|
||||
From: Charlotte Van Petegem <charlotte@vanpetegem.me>
|
||||
Date: Sun, 26 Mar 2023 12:41:08 +0200
|
||||
Subject: [PATCH] mu: 1.8.14 -> 1.10.0
|
||||
|
||||
---
|
||||
pkgs/tools/networking/mu/default.nix | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/pkgs/tools/networking/mu/default.nix b/pkgs/tools/networking/mu/default.nix
|
||||
index 9d2286e2271f1..81515e5d68273 100644
|
||||
--- a/pkgs/tools/networking/mu/default.nix
|
||||
+++ b/pkgs/tools/networking/mu/default.nix
|
||||
@@ -14,13 +14,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mu";
|
||||
- version = "1.8.14";
|
||||
+ version = "1.10.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "djcb";
|
||||
repo = "mu";
|
||||
rev = "v${version}";
|
||||
- hash = "sha256-m6if0Br9WRPR8POwOM0Iwido3UR/V0BlkuaLcWsf/c0=";
|
||||
+ hash = "sha256-l0gtXeXxz4WjQN+7JB9HhMcX3y7EApaEL3TUdI7Lqbo=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
Loading…
Add table
Add a link
Reference in a new issue