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:
parent
bf95792b82
commit
20fee03fa0
5
init.el
5
init.el
|
@ -12,8 +12,9 @@
|
||||||
;; Stop popups for warning messages, keep in log buffer
|
;; Stop popups for warning messages, keep in log buffer
|
||||||
(setopt warning-minimum-level :error)
|
(setopt warning-minimum-level :error)
|
||||||
|
|
||||||
;; Configure packages archives with priority
|
;; Configure packages archives, with priority, and list of installed
|
||||||
(load-file (locate-user-emacs-file "lib/package-config.el"))
|
;; packages
|
||||||
|
(load-file (locate-user-emacs-file "lib/my-packages.el"))
|
||||||
|
|
||||||
(setq custom-file (locate-user-emacs-file "custom.el"))
|
(setq custom-file (locate-user-emacs-file "custom.el"))
|
||||||
(when (and custom-file
|
(when (and custom-file
|
||||||
|
|
99
install.el
99
install.el
|
@ -2,105 +2,8 @@
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;;; Code:
|
;;; Code:
|
||||||
;; Configure packages archives with priority
|
;; Configure packages archives with priority
|
||||||
(load-file "lib/package-config.el")
|
(load-file "lib/my-packages.el")
|
||||||
(package-refresh-contents)
|
(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-install-selected-packages)
|
||||||
(package-autoremove)
|
(package-autoremove)
|
||||||
(provide 'install)
|
(provide 'install)
|
||||||
|
|
44
lib/my-packages.el
Normal file
44
lib/my-packages.el
Normal 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
|
|
@ -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
|
|
Loading…
Reference in a new issue