I want to write a defcustom
definition for a variable my-var
.
my-var
is an alist that maps strings to plists. Each such plists maps one of three keys (:x
, :y
, :z
) to a list of strings. So, a member of my-var
could be:
'("key" . (:x '("a" "b") :y '("c") :z '("d")))
So I want the use to be able to provide a string to be a key of the my-var
alist, and lists of strings as value for the three keys of the plist.
The problem is I don't know how to do that. Specifically, I don't know where to put the :option
keyword to offer :x
, :y
and :z
as possible keys:
:type '(alist :key-type string
:value-type (plist :key-type symbol
:value-type (repeat string)))