summaryrefslogtreecommitdiff
path: root/.emacs.d/modules
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/modules')
-rw-r--r--.emacs.d/modules/thanos-packages.el58
1 files changed, 41 insertions, 17 deletions
diff --git a/.emacs.d/modules/thanos-packages.el b/.emacs.d/modules/thanos-packages.el
index cb5b498..d18bd29 100644
--- a/.emacs.d/modules/thanos-packages.el
+++ b/.emacs.d/modules/thanos-packages.el
@@ -31,32 +31,56 @@
(require 'package)
+;; Straight
+(defvar bootstrap-version)
+(let ((bootstrap-file
+ (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
+ (bootstrap-version 6))
+ (unless (file-exists-p bootstrap-file)
+ (with-current-buffer
+ (url-retrieve-synchronously
+ "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
+ 'silent 'inhibit-cookies)
+ (goto-char (point-max))
+ (eval-print-last-sexp)))
+ (load bootstrap-file nil 'nomessage))
+
+(setf straight-recipe-overrides
+ '((doom-modeline :type git :host github :repo "seagle0128/doom-modeline")
+ (elfeed :type git :host github :repo "skeeto/elfeed")
+ (elfeed-goodies :type git :host github :repo "algernon/elfeed-goodies")
+ (eshell-git-prompt :type git :host github :repo "xuchunyang/eshell-git-prompt")
+ (eshell-syntax-highlighting :type git :host github :repo "akreisher/eshell-syntax-highlighting")
+ (gptel :type git :host github :repo "karthink/gptel")
+ (nerd-icons-completion :type git :host github :repo "rainstormstudio/nerd-icons-completion")
+ (nerd-icons-dired :type git :host github :repo "rainstormstudio/nerd-icons-dired")
+ (org-roam :type git :host github :repo "org-roam/org-roam")
+ (sudo-edit :type git :host github :repo "nflath/sudo-edit")))
+
+(straight-pull-all)
+
+
+(add-to-list 'load-path "~/dotfiles/emacs.d/packages")
+
(defvar thanos/packages
- '(emms tree-sitter org-snooze org-drill vertico marginalia
- all-the-icons nerd-icons-dired nerd-icons-ibuffer doom-themes
- toc-org emojify nerd-icons-completion helpful consult
- doom-modeline molokai-theme vterm multi-vterm
- password-store org org-modern org-roam which-key
- visual-fill-column rainbow-delimiters flycheck lsp-mode lsp-ui
- json-mode rjsx-mode typescript-mode python-mode pyvenv
- magit elfeed elfeed-goodies paredit corfu orderless
- monkeytype sudo-edit consult alsamixer simple-httpd
- eshell-syntax-highlighting org-superstar pdf-tools
- org-auto-tangle sly org-download eshell-git-prompt eshell-vterm
- hackernews circe gptel beacon ement mu4e-alert pass eat nov
- yeetube stumpwm-mode telega transmission))
+ '(emms vertico marginalia doom-modeline org-roam nerd-icons-completion
+ consult org org-modern which-key elfeed elfeed-goodies
+ visual-fill-column rainbow-delimiters eshell-git-prompt
+ json-mode ement magit corfu orderless consult pdf-tools
+ org-auto-tangle sly eat nov eshell-syntax-highlighting
+ yeetube telega transmission gptel nerd-icons-dired sudo-edit))
(setf package-archives '(("elpa" . "https://elpa.gnu.org/packages/")
- ("nongnu" . "https://elpa.nongnu.org/nongnu/")
- ("melpa" . "https://melpa.org/packages/")))
+ ("nongnu" . "https://elpa.nongnu.org/nongnu/")))
+
;; Activate all the packages
(package-initialize)
-
+(setf straight-use-package-by-default t)
;; Install the missing packages
(dolist (package thanos/packages)
(unless (package-installed-p package)
- (package-install package)))
+ (straight-use-package package)))
;; Set and load custom.el
(setf custom-file (concat user-emacs-directory "custom.el"))