I'd like to create a customizable variable foo-paths
with certain options.
(defcustom foo-paths nil
"Paths for foo-related things."
:group 'foo
:options '(foo-1 foo-2)
:type '(alist :key-type symbol :value-type (file :must-match t)))
I'd like for the user to only be able to provide values for the specified keys in :options
, not to add new options.
The manual doesn't offer a way to do this--the user can add new elements to the alist through the Customize interface.
Is there a way to achieve this? The functionality may not be impacted by the addition of new alist elements, but it seems strange that there's no way to specify a variable that has certain options and only those options.
list
, which specifies a list of a prescribed length and element types.