From 5279086921deb9cc0fd83e728157c7a94c99fc20 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sat, 7 Oct 2023 13:48:45 +0300 Subject: emacs: (packages) use straight with :local-repo --- .emacs.d/modules/thanos-packages.el | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to '.emacs.d/modules') diff --git a/.emacs.d/modules/thanos-packages.el b/.emacs.d/modules/thanos-packages.el index 9051db4..57e6eb6 100644 --- a/.emacs.d/modules/thanos-packages.el +++ b/.emacs.d/modules/thanos-packages.el @@ -31,7 +31,7 @@ (require 'package) -;; Use straight.el +;; Install straight.el (defvar bootstrap-version) (let ((bootstrap-file (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) @@ -50,18 +50,21 @@ (setf straight-use-package-by-default t) (defvar thanos/packages - '(emms vertico marginalia doom-modeline org-roam nerd-icons-completion - consult org org-modern which-key elfeed elfeed-goodies doom-themes python-mode - visual-fill-column rainbow-delimiters eshell-git-prompt helpful password-store - json-mode ement magit corfu orderless consult pdf-tools markdown-mode eat - org-auto-tangle sly eat nov eshell-syntax-highlighting emojify flycheck vterm - (yeetube :type git :host nil :repo "https://git.thanosapollo.com/yeetube") - telega transmission gptel nerd-icons-dired sudo-edit mu4e-alert)) - - -;; Install the missing packages -(dolist (package thanos/packages) - (straight-use-package package)) + '(emms vertico marginalia doom-modeline org-roam nerd-icons-completion + consult org org-modern which-key elfeed elfeed-goodies doom-themes python-mode + visual-fill-column rainbow-delimiters eshell-git-prompt helpful password-store + json-mode ement magit corfu orderless consult pdf-tools markdown-mode eat + org-auto-tangle sly eat nov eshell-syntax-highlighting emojify flycheck vterm + telega transmission gptel nerd-icons-dired sudo-edit mu4e-alert magit-todos) + "Packages to install.") + +(defvar thanos/local-package-repos + '((yeetube :local-repo "~/Developer/emacs-lisp/yeetube") + (pcomplete-yay :local-repo "~/Developer/emacs-lisp/pcomplete-yay"))) + +;; Get packages via straight +(cl-loop for package in (append thanos/local-package-repos thanos/packages) + do (straight-use-package package)) ;; Set and load custom.el (setf custom-file (concat user-emacs-directory "custom.el")) -- cgit v1.2.3