This commit is contained in:
SqrtMinusOne 2022-06-06 19:31:32 +00:00
parent efdd79219e
commit 9c3a48dc2e
9 changed files with 14 additions and 37 deletions

View file

@ -530,7 +530,6 @@ One thing where Emacs is particularly good is writing Lisp code, e.g. Clojure, C
<li><a href="#custom-faces">Custom faces</a></li>
<li><a href="#elfeed-summary">elfeed-summary</a></li>
<li><a href="#elfeed-sync">elfeed-sync</a></li>
<li><a href="#elfeed-score">elfeed-score</a></li>
<li><a href="#youtube-podcasts-and-emms">YouTube, podcasts &amp; EMMS</a></li>
<li><a href="#rdrview">rdrview</a>
<ul>
@ -660,6 +659,10 @@ One thing where Emacs is particularly good is writing Lisp code, e.g. Clojure, C
<td>pomidor</td>
<td>8594d6f53e42c70bbf903e168607841854818a38</td>
</tr>
<tr>
<td>elfeed-score</td>
<td>8e591e0d2afd909ae5be00caf17f9b17c6cd8b61</td>
</tr>
</tbody>
</table>
<h2 id="bootstrap">Bootstrap</h2>
@ -5488,32 +5491,6 @@ One thing where Emacs is particularly good is writing Lisp code, e.g. Clojure, C
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">elfeed-sync-tt-rss-instance</span> <span style="color:#ba2121">&#34;https://sqrtminusone.xyz/tt-rss&#34;</span>)
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">elfeed-sync-tt-rss-login</span> <span style="color:#ba2121">&#34;sqrtminusone&#34;</span>)
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">elfeed-sync-tt-rss-password</span> (<span style="color:#19177c">my/password-store-get</span> <span style="color:#ba2121">&#34;Selfhosted/tt-rss&#34;</span>)))
</span></span></code></pre></div><h5 id="elfeed-score">elfeed-score</h5>
<p><a href="https://github.com/sp1ff/elfeed-score">elfeed-score</a> is a package that implements scoring for the elfeed entries. Entries are scored by a set of rules for tags/title/content/etc and sorted by that score.</p>
<div class="highlight"><pre tabindex="0" style=";-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-emacs-lisp" data-lang="emacs-lisp"><span style="display:flex;"><span>(<span style="color:#008000">defun</span> <span style="color:#19177c">my/elfeed-toggle-score-sort</span> ()
</span></span><span style="display:flex;"><span> (<span style="color:#008000">interactive</span>)
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">elfeed-search-sort-function</span>
</span></span><span style="display:flex;"><span> (<span style="color:#008000">if</span> <span style="color:#19177c">elfeed-search-sort-function</span>
</span></span><span style="display:flex;"><span> <span style="color:#800">nil</span>
</span></span><span style="display:flex;"><span> <span style="color:#00f">#&#39;</span><span style="color:#19177c">elfeed-score-sort</span>))
</span></span><span style="display:flex;"><span> (<span style="color:#00f">message</span> <span style="color:#ba2121">&#34;Sorting by score: %S&#34;</span> (<span style="color:#008000">if</span> <span style="color:#19177c">elfeed-search-sort-function</span> <span style="color:#ba2121">&#34;ON&#34;</span> <span style="color:#ba2121">&#34;OFF&#34;</span>))
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">elfeed-search-update--force</span>))
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>(<span style="color:#008000">use-package</span> <span style="color:#19177c">elfeed-score</span>
</span></span><span style="display:flex;"><span> <span style="color:#008000">:straight</span> <span style="color:#800">t</span>
</span></span><span style="display:flex;"><span> <span style="color:#008000">:after</span> (<span style="color:#19177c">elfeed</span>)
</span></span><span style="display:flex;"><span> <span style="color:#008000">:init</span>
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">elfeed-score-serde-score-file</span> <span style="color:#ba2121">&#34;~/.emacs.d/elfeed.score&#34;</span>)
</span></span><span style="display:flex;"><span> <span style="color:#008000">:config</span>
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">elfeed-score-enable</span>)
</span></span><span style="display:flex;"><span> (<span style="color:#008000">setq</span> <span style="color:#19177c">elfeed-search-print-entry-function</span> <span style="color:#00f">#&#39;</span><span style="color:#19177c">elfeed-score-print-entry</span>)
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
</span></span><span style="display:flex;"><span> <span style="color:#008000">:states</span> <span style="color:#666">&#39;</span>(<span style="color:#19177c">normal</span>)
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymaps</span> <span style="color:#666">&#39;</span>(<span style="color:#19177c">elfeed-search-mode-map</span>)
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">&#34;=&#34;</span> <span style="color:#19177c">elfeed-score-map</span>)
</span></span><span style="display:flex;"><span> (<span style="color:#19177c">general-define-key</span>
</span></span><span style="display:flex;"><span> <span style="color:#008000">:keymaps</span> <span style="color:#666">&#39;</span>(<span style="color:#19177c">elfeed-score-map</span>)
</span></span><span style="display:flex;"><span> <span style="color:#ba2121">&#34;=&#34;</span> <span style="color:#00f">#&#39;</span><span style="color:#19177c">my/elfeed-toggle-score-sort</span>))
</span></span></code></pre></div><h5 id="youtube-podcasts-and-emms">YouTube, podcasts &amp; EMMS</h5>
<p>Previously this block was opening MPV with <code>start-process</code>, but now I&rsquo;ve managed to hook up MPV with EMMS. So there is the EMMS+elfeed &ldquo;integration&rdquo;.</p>
<p>There are multiple kinds of entries that I want to be opened by EMMS. First, a function that returns a YouTube URL:</p>

View file

@ -16,8 +16,8 @@
.profile Environment export QT_QPA_PLATFORMTHEME=&amp;#34;qt5ct&amp;#34; export QT_AUTO_SCREEN_SCALE_FACTOR=0 Set ripgrep config path
export RIPGREP_CONFIG_PATH=$HOME/.config/ripgrep/ripgreprc hledger path
export LEDGER_FILE=~/Documents/org-mode/ledger/ledger.journal Checking if running inside termux
if command -v termux-setup-storage &amp;gt; /dev/null; then export IS_ANDROID=true [[ -f ~/.android_profile ]] &amp;amp;&amp;amp; . ~/.android_profile fi My paths My script folders
if [ -d &amp;#34;$HOME/bin&amp;#34; ] ; then export PATH=&amp;#34;$HOME/bin:$PATH&amp;#34; export PATH=&amp;#34;$HOME/bin/scripts:$PATH&amp;#34; fi if [ -d &amp;#34;$HOME/.local/bin&amp;#34; ] ; then export PATH=&amp;#34;$HOME/.</description>
if command -v termux-setup-storage &amp;gt; /dev/null; then export IS_ANDROID=true [[ -f ~/.android_profile ]] &amp;amp;&amp;amp; . ~/.android_profile fi My paths My script folders
if [ -d &amp;#34;$HOME/bin&amp;#34; ] ; then export PATH=&amp;#34;$HOME/bin:$PATH&amp;#34; export PATH=&amp;#34;$HOME/bin/scripts:$PATH&amp;#34; fi if [ -d &amp;#34;$HOME/.local/bin&amp;#34; ] ; then export PATH=&amp;#34;$HOME/.local/bin:$PATH&amp;#34; fi Guix settings Enable extra profiles</description>
</item>
<item>
@ -29,7 +29,7 @@ if [ -d &amp;#34;$HOME/bin&amp;#34; ] ; then export PATH=&amp;#34;$HOME/bin:$PA
<description>My general desktop environment configuration.
Parts prefixed with (OFF) are not used, but kept for historic purposes. For some reason GitHub&amp;rsquo;s org renderer ignores TODO status, hence such a prefix. Round brackets instead of square ones to prevent GitHub&amp;rsquo;s org renderer from screwing up.
References:
A few cases of literate configuration. My blog post that explains some of techniques from this file. Table of Contents Global customization Colors Xresources Colors in Xresources Fonts Themes MIME Device-specific settings EXWM Startup &amp;amp; UI Xsession Startup apps Pinentry Modeline Windows Moving windows Resizing windows Improving splitting windows Perspectives Workspaces and multi-monitor setup Tracking recently used workspaces The monitor list Switch to another monitor Move the workspace to another monitor Windmove between monitors Completions ivy-posframe Disable mouse movement Disable changing focus Linux app password-store-ivy emojis Keybindings EXWM keybindings App shortcuts Locking up Fixes Catch and report all errors raised when invoking command hooks Improve floating windows behavior EXWM config i3wm General settings Managing windows Workspaces Rules Scratchpad Launch script i3 config Gaps &amp;amp; borders Keybindings Move &amp;amp; resize windows OFF (OFF) Intergration with dmenu Integration with rofi Launching apps &amp;amp; misc keybindings Apps Media controls &amp;amp; brightness Screenshots Colors OFF (OFF) i3blocks Keyboard Layout Autostart Polybar General settings Colors Glyph settings Defining modules Generating glyphs Generating set of modules Global bar config Launch script Individual modules pulseaudio mpd cpu ram-memory swap-memory network ipstack-vpn openvpn xkeyboard battery weather sun aw-afk date pomm SEP TSEP i3 Rofi Theme Scripts Buku bookmarks Man pages Emojis pass Flameshot dunst keynav Config Using with picom Picom Shadows Fading Opacity General settings Zathura Various software Browsers Office &amp;amp; Multimedia LaTeX Dev Manifests Flatpak Nix Services Music GNU Mcron ActivityWatch PulseEffects xsettingsd nm-applet Discord rich presence Polkit Authentication agent Xmodmap VPN Davmail sqrt-data Shepherd config Sync Guix settings Global customization Colors My favorite color theme is Palenight (color codes), and I want to have one source of truth for these colors.</description>
A few cases of literate configuration. My blog post that explains some of techniques from this file. Table of Contents Global customization Colors Xresources Colors in Xresources Fonts Themes MIME Device-specific settings EXWM Startup &amp;amp; UI Xsession Startup apps Pinentry Modeline Windows Moving windows Resizing windows Improving splitting windows Perspectives Workspaces and multi-monitor setup Tracking recently used workspaces The monitor list Switch to another monitor Move the workspace to another monitor Windmove between monitors Completions ivy-posframe Disable mouse movement Disable changing focus Linux app password-store-ivy emojis Keybindings EXWM keybindings App shortcuts Locking up Fixes Catch and report all errors raised when invoking command hooks Improve floating windows behavior EXWM config i3wm General settings Managing windows Workspaces Rules Scratchpad Launch script i3 config Gaps &amp;amp; borders Keybindings Move &amp;amp; resize windows OFF (OFF) Intergration with dmenu Integration with rofi Launching apps &amp;amp; misc keybindings Apps Media controls &amp;amp; brightness Screenshots Colors OFF (OFF) i3blocks Keyboard Layout Autostart Polybar General settings Colors Glyph settings Defining modules Generating glyphs Generating set of modules Global bar config Launch script Individual modules pulseaudio mpd cpu ram-memory swap-memory network ipstack-vpn openvpn xkeyboard battery weather sun aw-afk date pomm SEP TSEP i3 Rofi Theme Scripts Buku bookmarks Man pages Emojis pass Flameshot dunst keynav Config Using with picom Picom Shadows Fading Opacity General settings Zathura Various software Browsers Office &amp;amp; Multimedia LaTeX Dev Manifests Flatpak Nix Services Music GNU Mcron ActivityWatch PulseEffects xsettingsd nm-applet Discord rich presence Polkit Authentication agent Xmodmap VPN Davmail sqrt-data Shepherd config Sync Guix settings Global customization Colors My favorite color theme is Palenight (color codes), and I want to have one source of truth for these colors.</description>
</item>
<item>
@ -39,9 +39,9 @@ References:
<guid>https://sqrtminusone.xyz/configs/emacs/</guid>
<description>One day we won&amp;rsquo;t hate one another, no young boy will march to war and I will clean up my Emacs config. But that day isn&amp;rsquo;t today.
Introduction My configuration of GNU Emacs, an awesome text editor program that can do almost anything.
Introduction My configuration of GNU Emacs, an awesome text editor program that can do almost anything.
At the moment of this writing, this &amp;ldquo;almost anything&amp;rdquo; includes:
Writing code. With LSP &amp;amp; Co this functionality of Emacs may rival that of IDEs, and is at least on par with editors like VS Code.</description>
Writing code. With LSP &amp;amp; Co this functionality of Emacs may rival that of IDEs, and is at least on par with editors like VS Code.</description>
</item>
<item>
@ -53,7 +53,7 @@ At the moment of this writing, this &amp;ldquo;almost anything&amp;rdquo; includ
<description>GNU Guix is (1) a transactional package manager and (2) a GNU/Linux distribution.
My personal selling points are declarative package configuration and transactional upgrades.
References:
Official help System Crafters wiki Pjotr Prins&amp;rsquo; Guix notes Davil Wilson&amp;rsquo;s YouTube series Table of Contents Profiles Activate profiles Update profiles Run guix package in profile Channels Systems Base configuration indigo eminence azure System installation Preparation Installation After installation Misc software &amp;amp; notes VPN vpn-start vpn-stop flatpak conda Slack virt-manager wakatime-cli Manifest Profiles A profile is a way to group Guix packages.</description>
Official help System Crafters wiki Pjotr Prins&amp;rsquo; Guix notes Davil Wilson&amp;rsquo;s YouTube series Table of Contents Profiles Activate profiles Update profiles Run guix package in profile Channels Systems Base configuration indigo eminence azure System installation Preparation Installation After installation Misc software &amp;amp; notes VPN vpn-start vpn-stop flatpak conda Slack virt-manager wakatime-cli Manifest Profiles A profile is a way to group Guix packages.</description>
</item>
<item>

View file

@ -1,6 +1,6 @@
<!DOCTYPE html>
<html lang=""><head>
<meta name="generator" content="Hugo 0.99.1" />
<meta name="generator" content="Hugo 0.100.1" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View file

@ -13,7 +13,7 @@
<pubDate>Wed, 08 Sep 2021 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/posts/2021-09-07-emms/</guid>
<description>Intro This is the current state of my quest to live in Emacs, at least in part of reading RSS and music.
<description>Intro This is the current state of my quest to live in Emacs, at least in part of reading RSS and music.
Even before I lost my mind about customizing obscure keyboard-driven software, I tried Inoreader, self-hosted FreshRSS, and then newsboat from the RSS side and ncmpcpp+MPD from the audio player side. At some point, I got curious about whether I can do the same in Emacs.
The respective emacs packages, elfeed and EMMS, proved somewhat tricky to set up, i.</description>
</item>

View file

@ -54,7 +54,7 @@ But why not just use EXWM?</description>
<pubDate>Wed, 08 Sep 2021 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/posts/2021-09-07-emms/</guid>
<description>Intro This is the current state of my quest to live in Emacs, at least in part of reading RSS and music.
<description>Intro This is the current state of my quest to live in Emacs, at least in part of reading RSS and music.
Even before I lost my mind about customizing obscure keyboard-driven software, I tried Inoreader, self-hosted FreshRSS, and then newsboat from the RSS side and ncmpcpp+MPD from the audio player side. At some point, I got curious about whether I can do the same in Emacs.
The respective emacs packages, elfeed and EMMS, proved somewhat tricky to set up, i.</description>
</item>

View file

@ -13,7 +13,7 @@
<pubDate>Wed, 08 Sep 2021 00:00:00 +0000</pubDate>
<guid>https://sqrtminusone.xyz/posts/2021-09-07-emms/</guid>
<description>Intro This is the current state of my quest to live in Emacs, at least in part of reading RSS and music.
<description>Intro This is the current state of my quest to live in Emacs, at least in part of reading RSS and music.
Even before I lost my mind about customizing obscure keyboard-driven software, I tried Inoreader, self-hosted FreshRSS, and then newsboat from the RSS side and ncmpcpp+MPD from the audio player side. At some point, I got curious about whether I can do the same in Emacs.
The respective emacs packages, elfeed and EMMS, proved somewhat tricky to set up, i.</description>
</item>