summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorMichał M. Sapka <michal@sapka.me>2023-05-26 15:27:49 +0200
committerMichał M. Sapka <michal@sapka.me>2023-05-26 15:27:49 +0200
commit0289c16b4f676264423a1b18206be8b85f215553 (patch)
tree179ab42b00abd120137232a0aa5fb67d2f7db7f5 /content
parentad45af8c8b4e222e4ea20095a281dc394d2defed (diff)
feat: lisp hl
Diffstat (limited to 'content')
-rw-r--r--content/2023/moving-my-rss-reading-to-emacs-with-elfeed.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/content/2023/moving-my-rss-reading-to-emacs-with-elfeed.md b/content/2023/moving-my-rss-reading-to-emacs-with-elfeed.md
index 5115acc..a7f8687 100644
--- a/content/2023/moving-my-rss-reading-to-emacs-with-elfeed.md
+++ b/content/2023/moving-my-rss-reading-to-emacs-with-elfeed.md
@@ -26,14 +26,14 @@ One huge upside of elfeed compared to newsboat is image support. Emacs is a GUI
My setup is near stock. I have a few dozen feeds that are auto-tagged. Three essential tags are "important", "news", and "company". I want to read each "important", then I want to see all normal, and finally I can just skim "news" and "company". Adding auto-tagging is very simple: just define the tag when defining the RSS feed list:
-```
+{{<highlight lisp>}}
("https://rubenerd.com/feed/" blog important)
("https://www.pine64.org/feed/" company)
-```
+{{</highlight>}}
Now, each new article will be tagged with matching tags. Elfeed allows to define of custom faces that will be applied to items matching tag[^6]:
-```
+{{<highlight lisp>}}
(defface important-elfeed-entry
'((t :foreground "#f77"))
"Marks an important Elfeed entry."
@@ -50,7 +50,7 @@ Now, each new article will be tagged with matching tags. Elfeed allows to define
elfeed-search-face-alist)
(push '(news nonimportant-elfeed-entry)
elfeed-search-face-alist)
-```
+{{</highlight>}}
Now important items will be dark red, while company & news will be dark gray