Skip to content

Commit

Permalink
Use composite types for customization where needed
Browse files Browse the repository at this point in the history
Addresses #9
  • Loading branch information
anticomputer committed Apr 10, 2024
1 parent 9e82487 commit 5085bb1
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions age.el
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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."
Expand Down

0 comments on commit 5085bb1

Please sign in to comment.