From 3bd68eed6fcbfa267958b87e8f4263996848c7ca Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Mon, 10 Feb 2025 17:24:48 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(emms)=20Add=20play-url-at-point=20?= =?UTF-8?q?function?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.org b/config.org index 88dd045..8bacca8 100644 --- a/config.org +++ b/config.org @@ -2110,6 +2110,17 @@ And for playing music in Emacs there is EMMS. (setq emms-source-file-default-directory "~/Music")) #+end_src +Play an URL at point using EMMS + +#+begin_src emacs-lisp +(with-eval-after-load 'emms + (defun mmk2410/play-url-at-point () + "Play URL at point using EMMS" + (interactive) + (emms-play-url + (shr-url-at-point nil)))) +#+end_src + * ERC (the Emacs IRC client) ** The beast itself