When writing an alist where all the key/value pairs have keys that are variables, is there a convenient way to write this in Elisp without repetition?
eg:
`((foo . ,foo)
(long-variable-name . ,long-variable-name)
(yet-another-long-variable-name . ,yet-another-long-variable-name)
(you-get-the-idea . ,you-get-the-idea))
So the same structure could be written as:
(alist-from-vars
foo
long-variable-name
yet-another-long-variable-name
you-get-the-idea)
... with an arbitrary number of arguments.