Update elpaca migration for current master

- Convert remaining :straight to :ensure (claude-code-ide)
- Update elpaca-installer.el from v0.7 to v0.11
This commit is contained in:
2026-01-31 23:55:40 -08:00
parent 0d21252693
commit 5b92b7ee01
4 changed files with 56 additions and 36 deletions

View File

@@ -172,8 +172,9 @@ startup as possible.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(defvar imalison:do-benchmark) (defvar imalison:do-benchmark)
(let ((bench-file (concat (file-name-directory user-init-file) "benchmark.el"))) (when user-init-file
(when (file-exists-p bench-file) (load bench-file))) (let ((bench-file (concat (file-name-directory user-init-file) "benchmark.el")))
(when (file-exists-p bench-file) (load bench-file))))
(use-package benchmark-init (use-package benchmark-init
:if imalison:do-benchmark :if imalison:do-benchmark
@@ -1735,6 +1736,7 @@ bind-key and global-set-key forms.
** xref ** xref
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package xref (use-package xref
:ensure nil
:bind ("M-," . xref-go-back)) :bind ("M-," . xref-go-back))
#+end_src #+end_src
* Navigation * Navigation
@@ -1899,8 +1901,10 @@ Neotree is useless with frame mode for now, so I've disabled it.
:bind (:map vertico-map :bind (:map vertico-map
("RET" . vertico-directory-enter) ("RET" . vertico-directory-enter)
("DEL" . vertico-directory-delete-char) ("DEL" . vertico-directory-delete-char)
("M-DEL" . vertico-directory-delete-word) ("M-DEL" . vertico-directory-delete-word))
("TAB" . embark-act))) :config
(with-eval-after-load 'embark
(define-key vertico-map (kbd "TAB") #'embark-act)))
(use-package vertico-grid :ensure nil :after (vertico)) (use-package vertico-grid :ensure nil :after (vertico))
(use-package vertico-buffer :ensure nil :after (vertico)) (use-package vertico-buffer :ensure nil :after (vertico))
@@ -2259,6 +2263,7 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
(defvar imalison:use-lsp-python t) (defvar imalison:use-lsp-python t)
(use-package python (use-package python
:ensure nil
:commands python-mode :commands python-mode
:mode ("\\.py\\'" . python-mode) :mode ("\\.py\\'" . python-mode)
:preface :preface
@@ -2294,9 +2299,11 @@ I don't use auto-complete at all, so I have set up a hook to automatically disab
*** ruby *** ruby
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package ruby-mode (use-package ruby-mode
:ensure nil
:config :config
(setf (alist-get 'ruby-ts-mode apheleia-mode-alist) (with-eval-after-load 'apheleia
'(rubocop))) (setf (alist-get 'ruby-ts-mode apheleia-mode-alist)
'(rubocop))))
#+end_src #+end_src
*** go *** go
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@@ -3298,6 +3305,7 @@ emr (emacs refactor) provides support for refactoring in many programming langua
** semantic ** semantic
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package semantic (use-package semantic
:ensure nil
:commands semantic-mode :commands semantic-mode
:disabled t :disabled t
:preface :preface
@@ -3539,7 +3547,7 @@ crux-reopen-as-root-mode makes it so that any file owned by root will automatica
** claude-code-ide ** claude-code-ide
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package claude-code-ide (use-package claude-code-ide
:straight (:type git :host github :repo "manzaltu/claude-code-ide.el") :ensure (:type git :host github :repo "manzaltu/claude-code-ide.el")
:bind ("C-c C-'" . claude-code-ide-menu) :bind ("C-c C-'" . claude-code-ide-menu)
:config :config
(claude-code-ide-emacs-tools-setup) (claude-code-ide-emacs-tools-setup)
@@ -3776,6 +3784,7 @@ Not really sure what this is
** twittering-mode ** twittering-mode
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package twittering-mode (use-package twittering-mode
:ensure (:host github :repo "hayamiz/twittering-mode")
:commands twittering-mode) :commands twittering-mode)
#+END_SRC #+END_SRC
** matrix-client ** matrix-client
@@ -3984,6 +3993,7 @@ This is useful with server mode when editing gmail messages. I think that it is
** flyspell ** flyspell
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package flyspell (use-package flyspell
:ensure nil
:disabled t ; kind of annoying :disabled t ; kind of annoying
:preface (setq flyspell-issue-welcome-flag nil) :preface (setq flyspell-issue-welcome-flag nil)
:config :config

View File

@@ -1,10 +1,10 @@
;; Elpaca Installer -*- lexical-binding: t; -*- ;; Elpaca Installer -*- lexical-binding: t; -*-
(defvar elpaca-installer-version 0.7) (defvar elpaca-installer-version 0.11)
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory)) (defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory)) (defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory)) (defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
(defvar elpaca-order '(elpaca :repo "https://github.com/progfolio/elpaca.git" (defvar elpaca-order '(elpaca :repo "https://github.com/progfolio/elpaca.git"
:ref nil :depth 1 :ref nil :depth 1 :inherit ignore
:files (:defaults "elpaca-test.el" (:exclude "extensions")) :files (:defaults "elpaca-test.el" (:exclude "extensions"))
:build (:not elpaca--activate-package))) :build (:not elpaca--activate-package)))
(let* ((repo (expand-file-name "elpaca/" elpaca-repos-directory)) (let* ((repo (expand-file-name "elpaca/" elpaca-repos-directory))
@@ -14,26 +14,26 @@
(add-to-list 'load-path (if (file-exists-p build) build repo)) (add-to-list 'load-path (if (file-exists-p build) build repo))
(unless (file-exists-p repo) (unless (file-exists-p repo)
(make-directory repo t) (make-directory repo t)
(when (< emacs-major-version 28) (require 'subr-x)) (when (<= emacs-major-version 28) (require 'subr-x))
(condition-case-unless-debug err (condition-case-unless-debug err
(if-let ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*")) (if-let* ((buffer (pop-to-buffer-same-window "*elpaca-bootstrap*"))
((zerop (apply #'call-process `("git" nil ,buffer t "clone" ((zerop (apply #'call-process `("git" nil ,buffer t "clone"
,@(when-let ((depth (plist-get order :depth))) ,@(when-let* ((depth (plist-get order :depth)))
(list (format "--depth=%d" depth) "--no-single-branch")) (list (format "--depth=%d" depth) "--no-single-branch"))
,(plist-get order :repo) ,repo)))) ,(plist-get order :repo) ,repo))))
((zerop (call-process "git" nil buffer t "checkout" ((zerop (call-process "git" nil buffer t "checkout"
(or (plist-get order :ref) "--")))) (or (plist-get order :ref) "--"))))
(emacs (concat invocation-directory invocation-name)) (emacs (concat invocation-directory invocation-name))
((zerop (call-process emacs nil buffer nil "-Q" "-L" "." "--batch" ((zerop (call-process emacs nil buffer nil "-Q" "-L" "." "--batch"
"--eval" "(byte-recompile-directory \".\" 0 'force)"))) "--eval" "(byte-recompile-directory \".\" 0 'force)")))
((require 'elpaca)) ((require 'elpaca))
((elpaca-generate-autoloads "elpaca" repo))) ((elpaca-generate-autoloads "elpaca" repo)))
(progn (message "%s" (buffer-string)) (kill-buffer buffer)) (progn (message "%s" (buffer-string)) (kill-buffer buffer))
(error "%s" (with-current-buffer buffer (buffer-string)))) (error "%s" (with-current-buffer buffer (buffer-string))))
((error) (warn "%s" err) (delete-directory repo 'recursive)))) ((error) (warn "%s" err) (delete-directory repo 'recursive))))
(unless (require 'elpaca-autoloads nil t) (unless (require 'elpaca-autoloads nil t)
(require 'elpaca) (require 'elpaca)
(elpaca-generate-autoloads "elpaca" repo) (elpaca-generate-autoloads "elpaca" repo)
(load "./elpaca-autoloads"))) (let ((load-source-file-function nil)) (load "./elpaca-autoloads"))))
(add-hook 'after-init-hook #'elpaca-process-queues) (add-hook 'after-init-hook #'elpaca-process-queues)
(elpaca `(,@elpaca-order)) (elpaca `(,@elpaca-order))

View File

@@ -27,9 +27,12 @@
;;The packages in this section are used to as utilities in the rest of this init file. ;;The packages in this section are used to as utilities in the rest of this init file.
;;Ensure they are installed/activated first. ;;Ensure they are installed/activated first.
(use-package s :demand t) (use-package s
:ensure (:wait t)
:demand t)
(use-package dash (use-package dash
:ensure (:wait t)
:demand t :demand t
:config :config
(progn (dash-enable-font-lock))) (progn (dash-enable-font-lock)))
@@ -80,6 +83,12 @@
(elpaca-wait) (elpaca-wait)
;; Install transient early to prevent built-in version from loading
(use-package transient
:ensure (:host github :repo "magit/transient" :wait t)
:demand t)
(elpaca-wait)
(when (or (equal (s-trim (shell-command-to-string "whoami")) "kat") (when (or (equal (s-trim (shell-command-to-string "whoami")) "kat")
imalison:kat-mode) imalison:kat-mode)
(let ((debug-on-error t)) (let ((debug-on-error t))

View File

@@ -1004,8 +1004,6 @@ alphanumeric characters only."
:config :config
(progn (progn
(when (version<= "29.0" emacs-version) (when (version<= "29.0" emacs-version)
(use-package emacsql-sqlite-builtin
:demand t)
(setq org-roam-database-connector 'sqlite-builtin)) (setq org-roam-database-connector 'sqlite-builtin))
(org-roam-db-autosync-mode +1) (org-roam-db-autosync-mode +1)
@@ -1027,20 +1025,23 @@ alphanumeric characters only."
((get-buffer org-roam-buffer) 'exists) ((get-buffer org-roam-buffer) 'exists)
(t 'none))) (t 'none)))
(use-package frame-mode ;; org-roam-buffer-visibility-fn was removed in newer org-roam versions
:if imalison:use-frame-mode (when (and imalison:use-frame-mode (boundp 'org-roam-buffer-visibility-fn))
:demand t (require 'frame-mode)
:config (emit-variable-set-mode
(progn imalison:org-roam-set-frame-visibility-mode
(emit-variable-set-mode org-roam-buffer-visibility-fn 'imalison:org-roam-frame-based-buffer-visibility-fn)
imalison:org-roam-set-frame-visibility-mode (emit-make-mode-dependent imalison:org-roam-set-frame-visibility-mode frame-mode)))
org-roam-buffer-visibility-fn 'imalison:org-roam-frame-based-buffer-visibility-fn)
(emit-make-mode-dependent imalison:org-roam-set-frame-visibility-mode frame-mode))))
:custom :custom
(org-roam-directory (file-truename "~/org/roam/"))) (org-roam-directory (file-truename "~/org/roam/")))
#+end_src #+end_src
***** ui ***** ui
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package simple-httpd
:ensure (:host github :repo "skeeto/emacs-web-server"
:local-repo "simple-httpd"
:files ("simple-httpd.el")))
(use-package org-roam-ui (use-package org-roam-ui
:after org-roam :after org-roam
:custom :custom
@@ -1120,7 +1121,7 @@ alphanumeric characters only."
:ensure :ensure
(:repo "colonelpanic8/org-window-habit" (:repo "colonelpanic8/org-window-habit"
:host github :host github
:files ("org-window-habit.el")) :files (:defaults "*.el"))
:custom :custom
((org-window-habit-property-prefix nil) ((org-window-habit-property-prefix nil)
(org-window-habit-repeat-to-scheduled t) (org-window-habit-repeat-to-scheduled t)