about summary refs log tree commit diff
path: root/modules/emacs/default.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-08-03 16:45:57 +0300
committerAzat Bahawi <azat@bahawi.net>2024-08-03 16:45:57 +0300
commitf19b1ca98cde69a3d58c467d16d6a7ba3d7ffbcd (patch)
tree55b42fbafe17f2efd3696fe994131936920ede14 /modules/emacs/default.nix
parent2024-08-03 (diff)
2024-08-03
Diffstat (limited to '')
-rw-r--r--modules/emacs/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/emacs/default.nix b/modules/emacs/default.nix
index 3e59ce8..1e575ed 100644
--- a/modules/emacs/default.nix
+++ b/modules/emacs/default.nix
@@ -227,6 +227,10 @@ in
                               (mu4e-drafts-folder       . "/${name}/${folders.drafts}")
                               (mu4e-trash-folder        . "/${name}/${folders.trash}")
                               (mu4e-refile-folder       . "/${name}/Archive")
+                              ${
+                                optionalString (signature.showSignature != "none")
+                                  ''(mu4e-compose-signature   . "${replaceStrings [ "\n" ] [ "\\n" ] signature.text}")''
+                              }
                               (+mu4e-personal-addresses . (${personalAddresses})))
                             t)
                         ''

Consider giving Nix/NixOS a try! <3