From 8aeb088deb019be7791c984ff812a053641ff4a2 Mon Sep 17 00:00:00 2001 From: mms Date: Thu, 29 Feb 2024 23:50:42 +0100 Subject: feat: links --- mms-misc-rss.org | 3 +++ mms-misc.org | 18 +++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/mms-misc-rss.org b/mms-misc-rss.org index eef45f8..8c9cc19 100644 --- a/mms-misc-rss.org +++ b/mms-misc-rss.org @@ -131,6 +131,7 @@ I want to use it inside emacs *** https://howardism.org/index.xml *** https://sqrtminusone.xyz/posts/index.xml *** https://protesilaos.com/master.xml +*** https://amodernist.com/all.atom *** https://pragmaticemacs.wordpress.com/feed/ ** Entertainment *** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCrTNhL_yO3tPTdQ5XgmmWjA][RLM]] @@ -142,3 +143,5 @@ I want to use it inside emacs *** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCJ6KZTTnkE-s2XFJJmoTAkw][Accursed Farms]] *** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCTxyMIg98qejFPxm1t1-IxQ][Megumi Imai]] *** [[https://www.youtube.com/feeds/videos.xml?channel_id=UCi8C7TNs2ohrc6hnRQ5Sn2w][Programmers are also human]] +** Podcasts +*** https://2.5admins.com/feed/podcast diff --git a/mms-misc.org b/mms-misc.org index 2ec07d1..1b7b7f2 100644 --- a/mms-misc.org +++ b/mms-misc.org @@ -127,15 +127,19 @@ First, let's be able to run Youtube inside emacs Then, let's create linkhandler to pass the link to the correct handler. #+begin_src emacs-lisp - (defun mms-open-link-under-point () - (interactive) - (setq url (thing-at-point 'url)) - (cond - ((string-match "youtube.com" url) (yeetube-search url)) - (t (eww url))) - ) + (defun mms-open-link-under-point () + (interactive) + (let ((url (thing-at-point 'url)))) + (cond + ((string-match "youtube.com" url) (yeetube-search url)) + (t (eww url))) + ) #+end_src +#+RESULTS: +: mms-open-link-under-point + + And I want to have as =leader - enter - enter= #+begin_src emacs-lisp -- cgit v1.2.3