]> git.eshelyaron.com Git - emacs.git/commit
Allow multiple forms after keywords
authorNicolas Richard <theonewiththeevillook@yahoo.fr>
Mon, 10 Feb 2014 17:02:59 +0000 (18:02 +0100)
committerNicolas Richard <theonewiththeevillook@yahoo.fr>
Mon, 10 Feb 2014 17:57:27 +0000 (18:57 +0100)
commit2676ff5d959b30e0119bb7e72fa3f90144d62f38
tree0bd158609c9493dc8b807a0f791c23e1234e9fc9
parent58ca076647fad421f8173c2b5a93c5516314150e
Allow multiple forms after keywords

* use-package.el (use-package-mplist-get):
(use-package-plist-get):
(use-package-mplist-keys): new functions

(plist-get-value):
(use-package): use new functions

(plist-keys): remove function

The idea is to allow a modified kind of plist where keys are all
keywords that appear in the list, and values are the intermediary
elements. If a keyword is present but it's another keyword just after it
(like (use-package :defer :config (setq foo 'bar))), its associated
value will be t. If a keyword is not present, its value associated value
will be nil. Otherwise the value will be the list of elements between
the keyword and the next keyword.
lisp/use-package/use-package.el