From 1d8f1df4a395fd69d20f6c172c78ca08070d0fa3 Mon Sep 17 00:00:00 2001 From: Mx Kookie Date: Thu, 31 Dec 2020 15:05:15 +0100 Subject: [PATCH] libkookie: emacs: add notmuch filter rules --- .../overlays/kookie/emacs/default.nix | 1 + .../kookie/emacs/notmuch-rules/default.el | 52 +++++++++++++++++++ .../kookie/emacs/notmuch-rules/default.nix | 4 ++ 3 files changed, 57 insertions(+) create mode 100644 infra/libkookie/overlays/kookie/emacs/notmuch-rules/default.el create mode 100644 infra/libkookie/overlays/kookie/emacs/notmuch-rules/default.nix diff --git a/infra/libkookie/overlays/kookie/emacs/default.nix b/infra/libkookie/overlays/kookie/emacs/default.nix index d89863eaa27..1df6d3886a4 100644 --- a/infra/libkookie/overlays/kookie/emacs/default.nix +++ b/infra/libkookie/overlays/kookie/emacs/default.nix @@ -9,6 +9,7 @@ pkgs.emacsWithPackages (epkgs: ./move-lines ./multi-cursor ./notmuch + ./notmuch-rules ./org ./rust ./theme diff --git a/infra/libkookie/overlays/kookie/emacs/notmuch-rules/default.el b/infra/libkookie/overlays/kookie/emacs/notmuch-rules/default.el new file mode 100644 index 00000000000..a3d6bccf805 --- /dev/null +++ b/infra/libkookie/overlays/kookie/emacs/notmuch-rules/default.el @@ -0,0 +1,52 @@ +;; kookie-rules.el +;; Configure notmuch searches and settings required to send mail +;; +;; +;; This file is part of LIBKOOKIE, a collection of nix expressions. +;; LIBKOOKIE is licensed under the GPL-3.0 (or later) -- see LICENSE + +(provide 'kookie-rules) +(require 'notmuch) + +(setq mail-host-address "kookie.space") +(setq mml-enable-flowed t) +(setq mml-secure-openpgp-sign-with-sender t) +(setq mml-secure-smime-sign-with-sender t) + +(setq notmuch-address-internal-completion '(received nil)) +(setq notmuch-draft-save-plaintext nil) +(setq notmuch-fcc-dirs "Sent") +(setq notmuch-identities + [ + '("Katharina Sabel ") + '("Katharina Fey