summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/yeetube.el b/yeetube.el
index b918936..f0e1375 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -190,6 +190,11 @@ WHERE indicates where in the buffer the update should happen."
(yeetube-get-content)
(yeetube-buffer-create query yeetube-content 'yeetube-mode)))
+(defun yeetube-browse-url ()
+ "Open URL in browser."
+ (interactive)
+ (browse-url (yeetube-get-url)))
+
(defun yeetube-get-item (query)
"Get item from youtube results for QUERY.