summaryrefslogtreecommitdiff
path: root/mms-misc.org
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-02-21 16:24:22 +0100
committermms <michal@sapka.me>2024-02-21 16:24:22 +0100
commita7825b2adfa1b7746294ae3981814d763e7ad896 (patch)
tree328dc6aa8ba83261883befac47a7f5a605020b2c /mms-misc.org
parenteffb74469883db79ec4052fed9915358b9cce65c (diff)
feat: add yeetube keys
Diffstat (limited to 'mms-misc.org')
-rw-r--r--mms-misc.org15
1 files changed, 13 insertions, 2 deletions
diff --git a/mms-misc.org b/mms-misc.org
index b94cfd0..2ec07d1 100644
--- a/mms-misc.org
+++ b/mms-misc.org
@@ -110,10 +110,21 @@ Of course I want to have it inside Emacs!
First, let's be able to run Youtube inside emacs
#+begin_src emacs-lisp
- (use-package yeetube)
+ (use-package yeetube
+ :general
+ (:states 'normal
+ :keymaps 'yeetube-mode-map
+ "RET" 'yeetube-play
+ "d" 'yeetube-download-video
+ "b" 'yeetube-play-saved-video
+ "B" 'yeetube-save-video
+ "x" 'yeetube-remove-saved-video
+ "/" 'yeetube-search
+ "0" 'yeetube-toggle-video
+ ))
#+end_src
-Then, let's pass the link to the correct handler.
+Then, let's create linkhandler to pass the link to the correct handler.
#+begin_src emacs-lisp
(defun mms-open-link-under-point ()