summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-09 20:35:12 +0200
committerThanos Apollo <[email protected]>2024-01-09 20:35:12 +0200
commit7d6985302422fdc8df0562aee223d1233d8a0946 (patch)
tree3593486f40c7231ce983c5aea2e76b4ec12fc74f
parentcd5cd8aabd0db468a0ba60cab15584fa1401a88b (diff)
yeetube-search: Change buffer & start yeetube-mode
-rw-r--r--yeetube.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/yeetube.el b/yeetube.el
index 23e1080..485ab50 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -215,8 +215,10 @@ WHERE indicates where in the buffer the update should happen."
(decode-coding-region (point-min) (point-max) 'utf-8)
(goto-char (point-min))
(toggle-enable-multibyte-characters)
- (yeetube-get-content)
- (yeetube-buffer-create query yeetube-content 'yeetube-mode)))
+ (yeetube-get-content))
+ (with-current-buffer
+ (switch-to-buffer (get-buffer-create (concat "*yeetube*")))
+ (yeetube-mode)))
;;;###autoload
(defun yeetube-browse-url ()