diff --git a/early-init.el b/early-init.el index dd09f16..dc91cba 100644 --- a/early-init.el +++ b/early-init.el @@ -213,32 +213,21 @@ (gitlab . "acdw")) straight-base-dir acdw/var-dir) -;; Run `straight''s bootstrap code, after gitting the code directly. -(if (not (executable-find "git")) - (error "No 'git' in $PATH!") - (call-process "git" nil - (get-buffer-create "*bootstrap-straight-messages*") - nil - "clone" - "https://github.com/raxod502/straight.el" - (expand-file-name "repos/straight.el" - straight-base-dir)) - (defvar bootstrap-version) - (let ((bootstrap-file - (expand-file-name - "repos/straight.el/bootstrap.el" - straight-base-dir)) - (bootstrap-version 5)) - (unless (file-exists-p bootstrap-file) - (with-current-buffer - (url-retrieve-synchronously - (concat - "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))) +;; Run `straight''s bootstrap code +(defvar bootstrap-version) +(let ((bootstrap-file + (expand-file-name + "repos/straight.el/bootstrap.el" + straight-base-dir)) + (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)) ;; `use-package'