Silence byte-compiler warnings from plugins
This commit is contained in:
parent
b8fd35a855
commit
4fc990127c
1 changed files with 7 additions and 5 deletions
|
@ -186,10 +186,11 @@ FORCE-P is non-nil, do it anyway.
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(setq package-activated-list nil
|
(setq package-activated-list nil
|
||||||
package--initialized nil)
|
package--initialized nil)
|
||||||
(condition-case _ (package-initialize)
|
(let (byte-compile-warnings)
|
||||||
('error (package-refresh-contents)
|
(condition-case _ (package-initialize)
|
||||||
(setq doom--refreshed-p t)
|
('error (package-refresh-contents)
|
||||||
(package-initialize)))
|
(setq doom--refreshed-p t)
|
||||||
|
(package-initialize))))
|
||||||
;; Ensure core packages are installed.
|
;; Ensure core packages are installed.
|
||||||
(let ((core-packages (cl-remove-if #'package-installed-p doom-core-packages)))
|
(let ((core-packages (cl-remove-if #'package-installed-p doom-core-packages)))
|
||||||
(when core-packages
|
(when core-packages
|
||||||
|
@ -269,7 +270,8 @@ them."
|
||||||
(setq load-path doom-site-load-path)
|
(setq load-path doom-site-load-path)
|
||||||
(require 'package)
|
(require 'package)
|
||||||
(setq package-activated-list nil)
|
(setq package-activated-list nil)
|
||||||
(package-initialize))
|
(let (byte-compile-warnings)
|
||||||
|
(package-initialize)))
|
||||||
|
|
||||||
;; `quelpa-cache'
|
;; `quelpa-cache'
|
||||||
(when (or force-p (not (bound-and-true-p quelpa-cache)))
|
(when (or force-p (not (bound-and-true-p quelpa-cache)))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue