]> Untitled Git - monorepo.git/commitdiff
enhance rss experience in elfeed
authorPreston Pan <ret2pop@gmail.com>
Thu, 9 Jan 2025 03:33:15 +0000 (19:33 -0800)
committerPreston Pan <ret2pop@gmail.com>
Thu, 9 Jan 2025 03:33:15 +0000 (19:33 -0800)
config/elfeed.org
config/emacs.el
config/emacs.org
journal/20250108.org [new file with mode: 0644]
mindmap/lrc_circuit.png

index f898995e55ac0992e9bfb30cf5d43fda689db819..5f5db9c8e5633ea31755caf45e44c86c64a90ffa 100644 (file)
@@ -38,7 +38,9 @@ I like to get new information about recent studies related to technology.
 *** [[http://www.nature.com/nmat/current_issue/rss/][Nature]]
 Nature is a prestigious journal with a good bit of good content.
 ** YouTube :youtube:
-These are YouTube channels that I find interesting enough to keep up with:
+These are YouTube channels that I find interesting enough to keep up with. Note that I keep
+up with a variety of thinkers that I may or may not disagree with, but they are nonetheless
+the most intellectual version of what their general cohort say:
 *** [[https://www.youtube.com/feeds/videos.xml?channel_id=UC7_gcs09iThXybpVgjHZ_7g][PBS Space Time]]
 PBS space time is a channel that discusses various (sometimes cutting edge) topics in Physics in an expert manner.
 I find that they are highly accurate, and the host is highly educated in Physics.
@@ -47,6 +49,28 @@ ScienceClic is another YouTube channel that does an especially good job at cover
 *** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCMxiv15iK_MFayY_3fU9loQ][UnHerd]] :podcast:
 UnHerd is one of the best, most interesting political podcasts, period, in my opinion. Though, do note that learning
 about politics is kind of pointless.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UC8oZG4c6FzOX4pbdpZBeCPw][Huey Li]]
+He's a comedian and kind of a China hater.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UC554eY5jNUfDq3yDOJYirOQ][Destiny]]
+He debates people on various issues.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCYO_jab_esuFRV4b17AJtAw][3blue1brown]]
+Makes really good educational videos. I hope to make videos like this one day.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCGSGPehp0RWfca-kENgBJ9Q][Jreg]]
+Makes good videos about basically anything.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UC2eYFnH61tmytImy1mTYvhA][Luke Smith]]
+Makes good videos about Linux and life stuff.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCSNBahoyPlMUz-3U2e_Czcw][Bridges]] :podcast:
+This podcast is run by Destiny, and it features good guests.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCdBXOyqr8cDshsp7kcKDAkg][Big A]]
+Marketing Monday features good economics content.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCTpmmkp1E4nmZqWPS-dl5bg][Quanta Magazine]]
+See above.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UC5PPbhNfajmhPq7RvkMgVmw][Ceadda of Mercia]]
+Videos about NRx.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA][Mental Outlaw]]
+Linux videos.
+*** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCU1oodg2ptN51N5rwevwnng][Unlearning Economics]]
+Videos about economics from a Marxist perspective.
 ** Misc.
 This is a section dedicated to everything that does not fit the above categories
 or is newly added from [[file:qutebrowser.org][Qutebrowser]] with the xr keybinding.
index ef53838dc354ba597731b59850a5c52da4fc00cd..4eba87ad9e689ce3ff98d436eeaa48cb992f8076 100644 (file)
@@ -1,3 +1,7 @@
+(setq system-email "ret2pop@gmail.com")
+(setq system-username "prestonpan")
+(setq system-fullname "Preston Pan")
+
 (require 'tex-site)
 (pixel-scroll-precision-mode 1)
 (setq scroll-conservatively 101)
@@ -353,8 +357,8 @@ Otherwise, just insert the typed character."
 (use-package magit)
 
 (setq
- erc-nick "prestonpan"
- erc-user-full-name "Preston Pan")
+ erc-nick system-username
+ erc-user-full-name system-fullname)
 
 (defun prestonpan ()
   (interactive)
@@ -451,6 +455,29 @@ Otherwise, just insert the typed character."
   :config
   (elfeed-org))
 
+(use-package elfeed-tube
+  :after elfeed
+  :demand t
+  :config
+  ;; (setq elfeed-tube-auto-save-p nil) ; default value
+  ;; (setq elfeed-tube-auto-fetch-p t)  ; default value
+  (elfeed-tube-setup)
+
+  :bind (:map elfeed-show-mode-map
+         ("F" . elfeed-tube-fetch)
+         ([remap save-buffer] . elfeed-tube-save)
+         :map elfeed-search-mode-map
+         ("F" . elfeed-tube-fetch)
+         ([remap save-buffer] . elfeed-tube-save)))
+
+(use-package elfeed-tube-mpv
+  :bind (:map elfeed-show-mode-map
+              ("C-c C-f" . elfeed-tube-mpv-follow-mode)
+              ("C-c C-c" . elfeed-tube-mpv)
+              ("C-c C-w" . elfeed-tube-mpv-where)
+         :map elfeed-search-mode-map
+               ("M" . elfeed-tube-mpv)))
+
 (use-package treemacs)
 (use-package treemacs-evil
   :after (treemacs evil))
@@ -506,8 +533,8 @@ Otherwise, just insert the typed character."
 ;;   (latex-preview-pane-enable))
 
 ;; SMTP settings:
-(setq user-mail-address "ret2pop@gmail.com")
-(setq user-full-name "Preston Pan")
+(setq user-mail-address system-email)
+(setq user-full-name system-fullname)
 (setq sendmail-program "msmtp"
        send-mail-function 'smtpmail-send-it
        message-sendmail-f-is-evil t
@@ -529,7 +556,7 @@ Otherwise, just insert the typed character."
   (setq mu4e-compose-dont-reply-to-self t)
   (setq mu4e-change-filenames-when-moving t)
   (setq mu4e-get-mail-command "mbsync ret2pop")
-  (setq mu4e-compose-reply-ignore-address '("no-?reply" "ret2pop@gmail.com"))
+  (setq mu4e-compose-reply-ignore-address (list "no-?reply" system-email))
   (setq mu4e-html2text-command "w3m -T text/html" ; how to hanfle html-formatted emails
            mu4e-update-interval 300                  ; seconds between each mail retrieval
            mu4e-headers-auto-update t                ; avoid to type `g' to update
index 373a5e25d79a5765dafca15f0a169b5b3f1a6834..18841ab380253675ad7d92506ddaff7a292000e9 100644 (file)
@@ -554,6 +554,32 @@ elfeed to fetch feeds found on my website:
     :config
     (elfeed-org))
 #+end_src
+Then we set up elfeed-tube for Youtube video RSS feeds (so I don't ever have to use the web
+interface and can control it from emacs):
+#+begin_src emacs-lisp
+  (use-package elfeed-tube
+    :after elfeed
+    :demand t
+    :config
+    ;; (setq elfeed-tube-auto-save-p nil) ; default value
+    ;; (setq elfeed-tube-auto-fetch-p t)  ; default value
+    (elfeed-tube-setup)
+
+    :bind (:map elfeed-show-mode-map
+           ("F" . elfeed-tube-fetch)
+           ([remap save-buffer] . elfeed-tube-save)
+           :map elfeed-search-mode-map
+           ("F" . elfeed-tube-fetch)
+           ([remap save-buffer] . elfeed-tube-save)))
+
+  (use-package elfeed-tube-mpv
+    :bind (:map elfeed-show-mode-map
+                ("C-c C-f" . elfeed-tube-mpv-follow-mode)
+                ("C-c C-c" . elfeed-tube-mpv)
+                ("C-c C-w" . elfeed-tube-mpv-where)
+           :map elfeed-search-mode-map
+               ("M" . elfeed-tube-mpv)))
+#+end_src
 ** Project Drawer
 #+begin_src emacs-lisp
   (use-package treemacs)
@@ -651,7 +677,7 @@ Email in emacs can be done with Mu4e.
     (setq mu4e-compose-dont-reply-to-self t)
     (setq mu4e-change-filenames-when-moving t)
     (setq mu4e-get-mail-command "mbsync ret2pop")
-    (setq mu4e-compose-reply-ignore-address (add-to-list '("no-?reply") system-email))
+    (setq mu4e-compose-reply-ignore-address (list "no-?reply" system-email))
     (setq mu4e-html2text-command "w3m -T text/html" ; how to hanfle html-formatted emails
            mu4e-update-interval 300                  ; seconds between each mail retrieval
            mu4e-headers-auto-update t                ; avoid to type `g' to update
diff --git a/journal/20250108.org b/journal/20250108.org
new file mode 100644 (file)
index 0000000..4239671
--- /dev/null
@@ -0,0 +1,12 @@
+#+TITLE: Daily Journal
+#+STARTUP: showeverything
+#+DESCRIPTION: My daily journal entry
+#+AUTHOR: Preston Pan
+#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="../style.css" />
+#+html_head: <script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
+#+html_head: <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
+#+options: broken-links:t
+* Wednesday, 08 January 2025
+** 12:30 
+Today I'm demonstrating my unified NixOS config to my friend Andrei; it's cool because I get
+to show him this journal config and the automatic headers it adds.
index 9e8a162d410481b096c723339cdecad0c3843360..e677564959b0b85779ee64e98e9f5be36059ddce 100644 (file)
Binary files a/mindmap/lrc_circuit.png and b/mindmap/lrc_circuit.png differ