core: new dotfile variable dotspacemacs-use-spacelpa
If non-nil then Spacelpa repository is the primary source to install a locked version of packages. If nil then Spacemacs will install the lastest version of packages from MELPA. (default nil) The default value will be true when we bust all the major bugs.
This commit is contained in:
parent
a363f85d33
commit
f290565098
|
@ -412,6 +412,16 @@ cache folder.")
|
|||
|
||||
(defun configuration-layer/initialize ()
|
||||
"Initialize `package.el'."
|
||||
(unless dotspacemacs-use-spacelpa
|
||||
;; cleanly remove usage of stable elpa
|
||||
(setq configuration-layer-elpa-archives
|
||||
(cl-delete configuration-layer-stable-elpa-name
|
||||
configuration-layer-elpa-archives
|
||||
:test 'equal :key 'car))
|
||||
(setq package-archive-priorities
|
||||
(cl-delete configuration-layer-stable-elpa-name
|
||||
package-archive-priorities
|
||||
:test 'equal :key 'car)))
|
||||
(setq configuration-layer--refresh-package-timeout dotspacemacs-elpa-timeout)
|
||||
(unless package--initialized
|
||||
(setq configuration-layer-rollback-directory
|
||||
|
|
|
@ -63,6 +63,11 @@ environment, otherwise it is strongly recommended to let it set to t.")
|
|||
(defvar dotspacemacs-elpa-timeout 5
|
||||
"Maximum allowed time in seconds to contact an ELPA repository.")
|
||||
|
||||
(defvar dotspacemacs-use-spacelpa nil
|
||||
"If non-nil then Spacelpa repository is the primary source to install
|
||||
a locked version of packages. If nil then Spacemacs will install the lastest
|
||||
version of packages from MELPA.")
|
||||
|
||||
(defvar dotspacemacs-verify-spacelpa-archives nil
|
||||
"If non-nil then verify the signature for downloaded Spacelpa archives.")
|
||||
|
||||
|
|
|
@ -86,6 +86,10 @@ It should only modify the values of Spacemacs settings."
|
|||
;; Maximum allowed time in seconds to contact an ELPA repository.
|
||||
;; (default 5)
|
||||
dotspacemacs-elpa-timeout 5
|
||||
;; If non-nil then Spacelpa repository is the primary source to install
|
||||
;; a locked version of packages. If nil then Spacemacs will install the lastest
|
||||
;; version of packages from MELPA. (default nil)
|
||||
dotspacemacs-use-spacelpa nil
|
||||
;; If non-nil then verify the signature for downloaded Spacelpa archives.
|
||||
;; (default nil)
|
||||
dotspacemacs-verify-spacelpa-archives nil
|
||||
|
|
Loading…
Reference in New Issue