summaryrefslogtreecommitdiff
path: root/lisp/use-package
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2017-11-28 14:39:59 -0800
committerJohn Wiegley <johnw@newartisans.com>2017-11-28 14:39:59 -0800
commitc811637b303db7bb951e54f651da0ce4528ef130 (patch)
tree97fd5d6ec89552755dd2915ae80ae7539a415fe1 /lisp/use-package
parent2ebf0767332f0b56647085392adcc533904b96ef (diff)
downloademacs-c811637b303db7bb951e54f651da0ce4528ef130.tar.gz
emacs-c811637b303db7bb951e54f651da0ce4528ef130.tar.bz2
emacs-c811637b303db7bb951e54f651da0ce4528ef130.zip
Fix for single :custom (foo bar)
Diffstat (limited to 'lisp/use-package')
-rw-r--r--lisp/use-package/use-package.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index f6c21e0a903..a2ce335d1d8 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -1471,7 +1471,9 @@ deferred until the prefix key sequence is pressed."
(use-package-error
(concat label " a (<symbol> <value> [comment])"
" or list of these")))
- arg)))
+ (if (symbolp (car arg))
+ (list arg)
+ arg))))
(defun use-package-handler/:custom (name keyword args rest state)
"Generate use-package custom keyword code."