From 5085bb1835ea0d7780e7e07fc1b9902ad0cf72c3 Mon Sep 17 00:00:00 2001 From: Bas Alberts Date: Wed, 10 Apr 2024 00:15:59 -0400 Subject: [PATCH] Use composite types for customization where needed Addresses https://github.com/anticomputer/age.el/pull/9 --- age.el | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/age.el b/age.el index ea8a30f..27fe8e7 100644 --- a/age.el +++ b/age.el @@ -71,7 +71,13 @@ By default it is a file path. A nil value indicates that you want to use passphrase encryption only. This is mostly provided for let-binding convenience." - :type 'file) + :type '(choice + (file :tag "File path to default recipient (public key path)") + (repeat + (choice + (file :tag "File path to default recipient (public key path)") + (string :tag "Default recipient (public key value"))) + (string :tag "Default recipient (public key value"))) (defcustom age-default-identity (expand-file-name "~/.ssh/id_rsa") "Default identity to use for age (private key). @@ -83,7 +89,10 @@ a list of file paths to collections of private keys. A nil value indicates that you want to use passphrase decryption only. This is mostly provided for let-binding convenience." - :type 'file) + :type '(choice + (file :tag "File path to default identity (private key)") + (repeat + (file :tag "File path to default identity (private key)")))) (defcustom age-always-use-default-keys t "If non-nil, use default identities and recipients without nagging."