2024-10-04 21:40:04 -04:00
|
|
|
(setq elpaca-core-date '(20240911))
|
2024-11-07 00:51:50 -05:00
|
|
|
(defvar elpaca-installer-version 0.8)
|
2024-10-03 20:26:12 -04:00
|
|
|
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
|
|
|
|
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
|
|
|
|
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
|
|
|
|
(defvar elpaca-order '(elpaca :repo "https://github.com/progfolio/elpaca.git"
|
|
|
|
:ref nil :depth 1
|
|
|
|
:files (:defaults "elpaca-test.el" (:exclude "extensions"))
|
|
|
|
:build (:not elpaca--activate-package)))
|
|
|
|
(let* ((repo (expand-file-name "elpaca/" elpaca-repos-directory))
|
|
|
|
(build (expand-file-name "elpaca/" elpaca-builds-directory))
|
|
|
|
(order (cdr elpaca-order))
|
|
|
|
(default-directory repo))
|
|
|
|
(add-to-list 'load-path (if (file-exists-p build) build repo))
|
|
|
|
(unless (file-exists-p repo)
|
|
|
|
(make-directory repo t)
|
|
|
|
(when (< emacs-major-version 28) (require 'subr-x))
|
|
|
|
(condition-case-unless-debug err
|
2024-11-07 00:51:50 -05:00
|
|
|
(if-let* ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*"))
|
|
|
|
((zerop (apply #'call-process `("git" nil ,buffer t "clone"
|
|
|
|
,@(when-let* ((depth (plist-get order :depth)))
|
|
|
|
(list (format "--depth=%d" depth) "--no-single-branch"))
|
|
|
|
,(plist-get order :repo) ,repo))))
|
|
|
|
((zerop (call-process "git" nil buffer t "checkout"
|
|
|
|
(or (plist-get order :ref) "--"))))
|
|
|
|
(emacs (concat invocation-directory invocation-name))
|
|
|
|
((zerop (call-process emacs nil buffer nil "-Q" "-L" "." "--batch"
|
|
|
|
"--eval" "(byte-recompile-directory \".\" 0 'force)")))
|
|
|
|
((require 'elpaca))
|
|
|
|
((elpaca-generate-autoloads "elpaca" repo)))
|
2024-10-03 20:26:12 -04:00
|
|
|
(progn (message "%s" (buffer-string)) (kill-buffer buffer))
|
|
|
|
(error "%s" (with-current-buffer buffer (buffer-string))))
|
|
|
|
((error) (warn "%s" err) (delete-directory repo 'recursive))))
|
|
|
|
(unless (require 'elpaca-autoloads nil t)
|
|
|
|
(require 'elpaca)
|
|
|
|
(elpaca-generate-autoloads "elpaca" repo)
|
|
|
|
(load "./elpaca-autoloads")))
|
|
|
|
(add-hook 'after-init-hook #'elpaca-process-queues)
|
|
|
|
(elpaca `(,@elpaca-order))
|
|
|
|
|
|
|
|
(elpaca elpaca-use-package
|
2024-10-04 21:40:04 -04:00
|
|
|
(elpaca-use-package-mode)
|
|
|
|
(setq elpaca-use-package-by-default t))
|
2024-10-03 20:26:12 -04:00
|
|
|
|
|
|
|
(use-package emacs :ensure nil :config (setq ring-bell-function #'ignore))
|
|
|
|
|
|
|
|
(org-babel-load-file
|
|
|
|
(expand-file-name "config.org"
|
2024-11-07 00:51:50 -05:00
|
|
|
user-emacs-directory))
|