You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
;; Download and instll packages using https://github.com/raxod502/straight.el
|
|
;; It's a functional package manager that integrates with https://github.com/jwiegley/use-package
|
|
|
|
;; + Use the development branch
|
|
;; + Integrate with use-package
|
|
|
|
;; Apply the configurations prior to bootstrapping the package manager.
|
|
|
|
(setq straight-repository-branch "develop"
|
|
straight-use-package-by-default t)
|
|
|
|
;; Bootstrap the package manager.
|
|
;; Download, Install, or Configuring depending on the state of the configuration.
|
|
;; All packages build from source, pinned to specific git commit hashes.
|
|
|
|
(defvar bootstrap-version)
|
|
(let ((bootstrap-file
|
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
|
(bootstrap-version 5))
|
|
(unless (file-exists-p bootstrap-file)
|
|
(with-current-buffer
|
|
(url-retrieve-synchronously
|
|
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
|
|
'silent 'inhibit-cookies)
|
|
(goto-char (point-max))
|
|
(eval-print-last-sexp)))
|
|
(load bootstrap-file nil 'nomessage))
|
|
|
|
;; Integrate with use-package by installing it with straight.
|
|
|
|
(straight-use-package 'use-package)
|