Commit f276555d authored by steckerhalter's avatar steckerhalter Committed by GitHub

Merge pull request #9 from raxod502/load-quelpa-lazily

Load quelpa lazily if the user sets an option
parents d18b5550 da359ba4
......@@ -37,8 +37,14 @@
;;; Code:
(defvar quelpa-use-package-inhibit-loading-quelpa nil
"If non-nil, `quelpa-use-package' will do its best to avoid
loading `quelpa' unless necessary. This improves performance, but
can prevent packages from being updated automatically.")
(require 'cl-lib)
(require 'quelpa)
(unless quelpa-use-package-inhibit-loading-quelpa
(require 'quelpa))
(require 'use-package)
(defvar quelpa-use-package-keyword :quelpa)
......@@ -70,7 +76,9 @@
;; compiled or evaluated.
(if args
`((apply 'quelpa ',args))
`((unless (and quelpa-use-package-inhibit-loading-quelpa
(package-installed-p ',name-symbol))
(apply 'quelpa ',args)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment