add straight.el

This commit is contained in:
Anthony Rodriguez 2023-06-08 09:11:02 +02:00
parent aa4727aae9
commit d0a078dc87
No known key found for this signature in database
GPG key ID: 838541960B42C340

View file

@ -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))