defined by the package. In this way, loading the package is
deferred until the prefix key sequence is pressed."
(if (not (require package nil t))
- (error "Could not load package %s" package)
+ (use-package-error (format "Could not load package.el: %s" package))
(if (and (boundp keymap-symbol)
(keymapp (symbol-value keymap-symbol)))
(let ((key (key-description (this-command-keys-vector)))
(bind-key key keymap))
(setq unread-command-events
(listify-key-sequence (this-command-keys-vector))))
- (error "use-package: package %s failed to define keymap %s"
- package keymap-symbol))))
+ (use-package-error
+ (format "use-package: package.el %s failed to define keymap %s"
+ package keymap-symbol)))))
(defun use-package-handler/:bind-keymap
(name-symbol keyword arg rest state &optional override)
config-body)
`((if (not (require ',name-symbol nil t))
(ignore
- (display-warning
- 'use-package
- (format "Could not load %s" ',name-symbol)
- :error))
+ (message (format "Could not load %s" ',name-symbol)))
,@config-body)))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;