Move all package definitions into init.el

Separate Emacs package management from NixOS config

Adjust archive priority to use most up to date (MELPA) packages

Remove elfeed and associated packages
This commit is contained in:
Evie Litherland-Smith 2024-07-24 08:21:40 +01:00
parent 8e482ff200
commit 1f98c39561

42
init.el
View file

@ -14,7 +14,7 @@
(use-package package
:custom
(package-archive-priorities '(("melpa" . 1) ("stable" . 2) ("nongnu" . 3) ("gnu" . 4)))
(package-archive-priorities '(("melpa" . 4) ("stable" . 3) ("nongnu" . 2) ("gnu" . 1)))
(package-selected-packages
'(
;; UI
@ -27,9 +27,16 @@
consult consult-eglot flyspell-correct tempel
;; IDE
treesit-auto magit apheleia envrc rainbow-delimiters
flymake-shellcheck flymake-yamllint flymake-clippy flymake-eslint
markdown-mode pandoc-mode python-docstring nix-mode lua-mode
treesit-auto magit forge apheleia envrc rainbow-delimiters
flymake-shellcheck flymake-yamllint flymake-clippy
flymake-eslint markdown-mode pandoc-mode python-docstring
nix-mode lua-mode
;; Org + LaTeX
org-roam org-noter citar auctex htmlize
;; Other
password-store emms bbdb ement scad-mode
))
:config
@ -1147,33 +1154,6 @@ Calls `project-remember-projects-under' for ~/Projects/"
(eww-auto-rename-buffer 'title)
(eww-browse-url-new-window-is-tab nil))
(use-package elfeed
:if (package-installed-p 'elfeed)
:bind (("C-c f" . elfeed))
:hook ((elfeed-search-mode . elfeed-update)
(elfeed-show-mode . (lambda () (visual-line-mode +1))))
:custom
(elfeed-search-filter "@2-months-ago +unread")
:config
(require 'org)
(require 'elfeed-db)
(require 'elfeed-org))
(use-package elfeed-db
:after (elfeed org)
:custom
(elfeed-db-directory (expand-file-name "elfeed" org-directory)))
(use-package elfeed-org
:after (elfeed elfeed-db org)
:defines rmh-elfeed-org-files
:functions elfeed-org
:custom
(rmh-elfeed-org-files (list
(expand-file-name "feeds.org" elfeed-db-directory)))
:config
(elfeed-org))
(use-package password-store
:defer t
:functions password-store-get)