Better implementation of previous commit
This commit is contained in:
parent
067ac63f15
commit
66ed054a15
|
@ -27,8 +27,7 @@ directory is returned.
|
||||||
If LOG is non-nil a message is displayed in spacemacs-buffer-mode buffer.
|
If LOG is non-nil a message is displayed in spacemacs-buffer-mode buffer.
|
||||||
FILE-TO-LOAD is an explicit file to load after the installation."
|
FILE-TO-LOAD is an explicit file to load after the installation."
|
||||||
(let ((warning-minimum-level :error))
|
(let ((warning-minimum-level :error))
|
||||||
(if (locate-file (symbol-name pkg) load-path (get-load-suffixes))
|
(unless (require pkg nil 'noerror)
|
||||||
(require pkg)
|
|
||||||
;; not installed, we try to initialize package.el only if required to
|
;; not installed, we try to initialize package.el only if required to
|
||||||
;; precious seconds during boot time
|
;; precious seconds during boot time
|
||||||
(require 'cl)
|
(require 'cl)
|
||||||
|
|
Loading…
Reference in a new issue