add straight.el
This commit is contained in:
parent
aa4727aae9
commit
d0a078dc87
1 changed files with 12 additions and 8 deletions
|
@ -18,14 +18,18 @@
|
||||||
(add-hook 'text-mode-hook 'visual-line-mode)
|
(add-hook 'text-mode-hook 'visual-line-mode)
|
||||||
|
|
||||||
;; Initialize package sources
|
;; Initialize package sources
|
||||||
(require 'package)
|
(defvar bootstrap-version)
|
||||||
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
|
(let ((bootstrap-file
|
||||||
("org" . "https://orgmode.org/elpa/")
|
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
|
||||||
("elpa" . "https://elpa.gnu.org/packages/")))
|
(bootstrap-version 6))
|
||||||
(package-initialize)
|
(unless (file-exists-p bootstrap-file)
|
||||||
(unless package-archive-contents
|
(with-current-buffer
|
||||||
(package-refresh-contents))
|
(url-retrieve-synchronously
|
||||||
|
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
|
||||||
|
'silent 'inhibit-cookies)
|
||||||
|
(goto-char (point-max))
|
||||||
|
(eval-print-last-sexp)))
|
||||||
|
(load bootstrap-file nil 'nomessage))
|
||||||
;; Initialize use-package on non-Linux platforms
|
;; Initialize use-package on non-Linux platforms
|
||||||
(unless (package-installed-p 'use-package)
|
(unless (package-installed-p 'use-package)
|
||||||
(package-install 'use-package))
|
(package-install 'use-package))
|
||||||
|
|
Loading…
Reference in a new issue