summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Talbott <justin@waymondo.com>2017-11-20 23:33:34 -0500
committerJustin Talbott <justin@waymondo.com>2017-11-20 23:33:34 -0500
commit57ec21a0139a286d3a670a4aef6699e13b4ec963 (patch)
tree404610eb76eda93f068ae6e3c5f9e2092265ddb6
parent9bf8264523fe79c00eac10969e2726b7bac56d03 (diff)
downloademacs-57ec21a013.tar.gz
allow customized values to be nil
-rw-r--r--lisp/use-package/use-package.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/use-package/use-package.el b/lisp/use-package/use-package.el
index 24c62339ea1..f36cebe70d1 100644
--- a/lisp/use-package/use-package.el
+++ b/lisp/use-package/use-package.el
@@ -1423,7 +1423,8 @@ deferred until the prefix key sequence is pressed."
(value (nth 1 def))
(comment (nth 2 def)))
(when (or (not variable)
- (not value)
+ (and (not value)
+ (not (eq value nil)))
(> (length def) 3)
(and comment (not (stringp comment))))
(use-package-error error-msg))))))