Commit da359ba4 authored by Radon Rosborough's avatar Radon Rosborough

Add an option to control whether quelpa is loaded

parent 1ae01e5b
......@@ -37,7 +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)
(unless quelpa-use-package-inhibit-loading-quelpa
(require 'quelpa))
(require 'use-package)
(defvar quelpa-use-package-keyword :quelpa)
......@@ -69,7 +76,8 @@
;; compiled or evaluated.
(if args
`((unless (package-installed-p ',name-symbol)
`((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