first commit
This commit is contained in:
26
profiles/desktop/.emacs.d/modules/package-manager.el
Normal file
26
profiles/desktop/.emacs.d/modules/package-manager.el
Normal file
@@ -0,0 +1,26 @@
|
||||
;;; package-manager.el --- bootstrap straight.el -*- lexical-binding: t -*-
|
||||
;;; Commentary:
|
||||
|
||||
;; bootstrap straight.el
|
||||
(defvar bootstrap-version)
|
||||
(let ((bootstrap-file
|
||||
(expand-file-name
|
||||
"straight/repos/straight.el/bootstrap.el"
|
||||
(or (bound-and-true-p straight-base-dir)
|
||||
user-emacs-directory)))
|
||||
(bootstrap-version 7))
|
||||
(unless (file-exists-p bootstrap-file)
|
||||
(with-current-buffer
|
||||
(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))
|
||||
|
||||
;; configure package manager
|
||||
(straight-use-package 'use-package)
|
||||
(setq straight-use-package-by-default t)
|
||||
|
||||
(provide 'package-manager)
|
||||
;;; package-manager.el ends here
|
||||
Reference in New Issue
Block a user