diff options
author | David Morgan <djm_uk@protonmail.com> | 2024-06-01 15:49:45 +0100 |
---|---|---|
committer | David Morgan <djm_uk@protonmail.com> | 2024-06-01 15:49:45 +0100 |
commit | c51cdcf0d1d144adc3daa08b294bed9f20eda138 (patch) | |
tree | 9047b60bf631765c073359208c53c335480a9e70 /.emacs.d/lisp | |
parent | 1a5e5fae15045846c9d2d01910b7067fe7a8deaa (diff) | |
download | dotfiles-c51cdcf0d1d144adc3daa08b294bed9f20eda138.tar.gz |
Improve elpaca transient config
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r-- | .emacs.d/lisp/init-packages.el | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/.emacs.d/lisp/init-packages.el b/.emacs.d/lisp/init-packages.el index bc297d4..fa9db8f 100644 --- a/.emacs.d/lisp/init-packages.el +++ b/.emacs.d/lisp/init-packages.el @@ -72,10 +72,20 @@ (elpaca `(seq :build ,(+elpaca-seq-build-steps))) +(defun +elpaca-unload-transient (e) + (and (featurep 'transient) (unload-feature 'transient t)) + (elpaca--continue-build e)) + +(defun +elpaca-transient-build-steps () + (append (butlast (if (file-exists-p (expand-file-name "transient" elpaca-builds-directory)) + elpaca--pre-built-steps elpaca-build-steps)) + (list '+elpaca-unload-transient 'elpaca--activate-package))) + +(elpaca `(transient :build ,(+elpaca-transient-build-steps))) + ;; Block until current queue processed. (elpaca-wait) -(add-to-list 'elpaca-ignored-dependencies 'transient) (add-to-list 'elpaca-ignored-dependencies 'project) ;; https://github.com/progfolio/elpaca/wiki/Logging#auto-hiding-the-elpaca-log-buffer @@ -134,7 +144,6 @@ (add-to-list list-var elt t))) ;; Built-in in 29.1+, but we want the latest -(use-package transient) (provide 'init-packages) ;;; init-packages.el ends here |