Move package list to my-packages.el (was package-config.el)

Package list now accessible from running Emacs as well as installed
Makefile directive.
This commit is contained in:
Evie Litherland-Smith 2024-07-05 06:17:25 +01:00
parent bf95792b82
commit 20fee03fa0
4 changed files with 48 additions and 112 deletions

View file

@ -12,8 +12,9 @@
;; Stop popups for warning messages, keep in log buffer
(setopt warning-minimum-level :error)
;; Configure packages archives with priority
(load-file (locate-user-emacs-file "lib/package-config.el"))
;; Configure packages archives, with priority, and list of installed
;; packages
(load-file (locate-user-emacs-file "lib/my-packages.el"))
(setq custom-file (locate-user-emacs-file "custom.el"))
(when (and custom-file

View file

@ -2,105 +2,8 @@
;;; Commentary:
;;; Code:
;; Configure packages archives with priority
(load-file "lib/package-config.el")
(load-file "lib/my-packages.el")
(package-refresh-contents)
(setopt package-selected-packages
'(
;; Theme
base16-theme
;; UI
all-the-icons
nerd-icons
nerd-icons-completion
nerd-icons-corfu
nerd-icons-dired
nerd-icons-ibuffer
diminish
ligature
page-break-lines
helpful
which-key
ace-window
link-hint
diff-hl
;; Completion
cape
consult
consult-eglot
consult-flyspell
corfu
corfu-terminal
embark
embark-consult
marginalia
orderless
vertico
;; Templates
tempel
license-templates
gitignore-templates
;; spell-checking
flyspell-correct
;; password-store
pass
password-store
;; IDE
treesit-auto
flymake-popon
flymake-shellcheck
flymake-yamllint
flymake-eslint
apheleia
envrc
rainbow-delimiters
aggressive-indent
python-docstring
nix-mode
lua-mode
;; Media
emms
;; org-mode
org-roam
org-noter
;; org-cite
citar
citar-embark
;; org-mode HTML export
htmlize
;; Projects
magit
forge
treemacs
treemacs-nerd-icons
;; Writing
markdown-mode
pandoc-mode
auctex
auctex-latexmk
latex-preview-pane
;; Contacts
bbdb
mu4e
ement
;; RSS feeds
elfeed
elfeed-org
elfeed-tube
))
(package-install-selected-packages)
(package-autoremove)
(provide 'install)

44
lib/my-packages.el Normal file
View file

@ -0,0 +1,44 @@
;;; my-packages.el -- Setup package.el archives and priorities -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(use-package package
:custom
(package-archive-priorities '(("melpa" . 1) ("stable" . 2) ("nongnu" . 3) ("gnu" . 4)))
(package-selected-packages
'(;; Theme
base16-theme
;; UI
all-the-icons nerd-icons nerd-icons-completion nerd-icons-corfu nerd-icons-dired nerd-icons-ibuffer diminish ligature page-break-lines helpful which-key ace-window link-hint diff-hl
;; Completion
cape consult consult-eglot consult-flyspell corfu corfu-terminal embark embark-consult marginalia orderless vertico
;; Templates
tempel license-templates gitignore-templates
;; spell-checking
flyspell-correct
;; password-store
pass password-store
;; IDE
treesit-auto flymake-popon flymake-shellcheck flymake-yamllint flymake-eslint apheleia envrc rainbow-delimiters aggressive-indent python-docstring nix-mode lua-mode
;; Media
emms
;; org-mode
org-roam org-noter
;; org-cite
citar citar-embark
;; org-mode HTML export
htmlize
;; Projects
magit forge treemacs treemacs-nerd-icons
;; Writing
markdown-mode pandoc-mode auctex auctex-latexmk latex-preview-pane
;; Contacts
bbdb mu4e ement
;; RSS feeds
elfeed elfeed-org elfeed-tube))
:config
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
(package-initialize))
(provide 'my-packages)
;;; my-packages.el ends here

View file

@ -1,12 +0,0 @@
;;; package-config.el -- Setup package.el archives and priorities -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(use-package package
:custom
(package-archive-priorities '(("melpa" . 10) ("stable" . 5) ("nongnu" . 5) ("gnu" . 0)))
:config
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(add-to-list 'package-archives '("stable" . "https://stable.melpa.org/packages/"))
(package-initialize))
(provide 'package-config)
;;; package-config.el ends here