2024-03-19 15:23:58 +09:00
|
|
|
;; init.el - part of dotfiles
|
|
|
|
;; https://git.kinoshita-lab.org/kazbo/dotfiles
|
|
|
|
|
|
|
|
;; setup strait
|
|
|
|
;; cf. https://github.com/radian-software/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))
|
|
|
|
|
|
|
|
;; use-package
|
|
|
|
(straight-use-package 'use-package)
|
|
|
|
(setq straight-use-package-by-default t)
|
|
|
|
|