chore: remove elfeed
Dropped because the UX is confusing and it went unused. Removed:
config.el rmh-elfeed-org-files, elfeed-search-filter, the custom
"elfeed:" org link type (follow + store), the SPC o e
binding, my/elfeed-entry-to-org-roam and its SPC "e"
capture template, and the two elfeed-mode keybindings
mac/init.el ;;(rss +org) -- the module exists only to provide elfeed,
so it is now disabled here too (it already was in
linux/init.el)
elfeed.org the feed list, 20 feeds
Kept: the org-link-preview binding (SPC m l p), which sat between the
elfeed blocks and has nothing to do with it.
After pulling on the mac: doom sync, since a module left the list.
Two leftovers this commit does not touch:
- the feed list Emacs actually read is ~/Documents/qwan/essays/willem/
elfeed.org (905 bytes, newer than the copy deleted here) because
rmh-elfeed-org-files was relative to org-directory. That file now has
no consumer, and it sits inside org-roam-directory, so it will still
show up as a node until you delete or archive it.
- notes captured with my/elfeed-entry-to-org-roam contain
[[elfeed:...]] links whose link type no longer exists. They open as
unknown links now. I could not check how many there are: the vault is
not readable from this sandbox.
This commit is contained in:
@@ -330,33 +330,6 @@
|
||||
(setq org-roam-export-blog-firehose-root "~/dev/elixir/firehose"
|
||||
org-roam-export-jekyll-root "~/MyDocuments/qwan/sites/qwaneu.github.io")
|
||||
|
||||
;; Elfeed RSS configuration
|
||||
;; Feeds are defined in org-directory (same as org-roam-directory)
|
||||
(setq rmh-elfeed-org-files (list "elfeed.org"))
|
||||
(after! elfeed
|
||||
(setq elfeed-search-filter "@1-week-ago +unread"))
|
||||
|
||||
;; Custom elfeed: link type to open entries in elfeed
|
||||
(after! org
|
||||
(org-link-set-parameters
|
||||
"elfeed"
|
||||
:follow (lambda (path)
|
||||
(require 'elfeed)
|
||||
(let* ((id (read path))
|
||||
(entry (elfeed-db-get-entry id)))
|
||||
(if entry
|
||||
(progn
|
||||
(elfeed-show-entry entry)
|
||||
(switch-to-buffer "*elfeed-entry*"))
|
||||
(message "Entry not found in elfeed database: %s" path))))
|
||||
:store (lambda ()
|
||||
(when (eq major-mode 'elfeed-show-mode)
|
||||
(let ((entry elfeed-show-entry))
|
||||
(org-link-store-props
|
||||
:type "elfeed"
|
||||
:link (format "elfeed:%s" (prin1-to-string (elfeed-entry-id entry)))
|
||||
:description (elfeed-entry-title entry)))))))
|
||||
|
||||
;; Toggle inline previews (images) of org links — SPC m l p in org buffers
|
||||
(map! :after org
|
||||
:map org-mode-map
|
||||
@@ -364,41 +337,6 @@
|
||||
:desc "Toggle link preview"
|
||||
"l p" #'org-link-preview)
|
||||
|
||||
(map! :leader
|
||||
:desc "Elfeed RSS reader"
|
||||
"o e" (cmd! (elfeed)))
|
||||
|
||||
;; Capture elfeed entry to org-roam with ROAM_REFS and elfeed link
|
||||
(defun my/elfeed-entry-to-org-roam ()
|
||||
"Capture current elfeed entry to org-roam with ROAM_REFS and elfeed link."
|
||||
(interactive)
|
||||
(let* ((entry (or elfeed-show-entry
|
||||
(elfeed-search-selected :single)))
|
||||
(title (elfeed-entry-title entry))
|
||||
(url (elfeed-entry-link entry))
|
||||
(date (format-time-string "%Y-%m-%d" (elfeed-entry-date entry)))
|
||||
(elfeed-id (prin1-to-string (elfeed-entry-id entry))))
|
||||
(org-roam-capture-
|
||||
:keys "e"
|
||||
:node (org-roam-node-create :title title)
|
||||
:templates
|
||||
`(("e" "elfeed" plain "%?"
|
||||
:target (file+head
|
||||
"%<%Y%m%d%H%M%S>-${slug}.org"
|
||||
,(concat ":PROPERTIES:\n"
|
||||
":ROAM_REFS: " url "\n"
|
||||
":END:\n"
|
||||
"#+title: ${title}\n"
|
||||
"#+date: " date "\n\n"
|
||||
"[[elfeed:" elfeed-id "][View in Elfeed]]\n\n"))
|
||||
:unnarrowed t)))))
|
||||
|
||||
(map! :after elfeed
|
||||
:map elfeed-show-mode-map
|
||||
:n "C" #'my/elfeed-entry-to-org-roam
|
||||
:map elfeed-search-mode-map
|
||||
:n "C" #'my/elfeed-entry-to-org-roam)
|
||||
|
||||
;; LLM configuration with gptel
|
||||
;; Machine-specific backends are configured in config-local.el
|
||||
;; This file contains shared settings only
|
||||
|
||||
Reference in New Issue
Block a user