use-package-as-string: use noerror parameter

This commit is contained in:
Noam Postavsky 2015-09-06 22:28:50 -04:00
parent be7a0e4649
commit 71057bc20f

View file

@ -212,8 +212,8 @@ convert it to a string and return that."
"Return a form which will load or require NAME depending on "Return a form which will load or require NAME depending on
whether it's a string or symbol." whether it's a string or symbol."
(if (stringp name) (if (stringp name)
`(load ,name 'noerror) `(load ,name ',noerror)
`(require ',name nil 'noerror))) `(require ',name nil ',noerror)))
(defun use-package-expand (name label form) (defun use-package-expand (name label form)
"FORM is a list of forms, so `((foo))' if only `foo' is being called." "FORM is a list of forms, so `((foo))' if only `foo' is being called."