diff options
author | Thanos Apollo <[email protected]> | 2023-09-28 06:26:30 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-28 06:26:30 +0300 |
commit | 842eb0f7eee06b97fdbee40796c0b1ed25092f50 (patch) | |
tree | bf53269cbc5eaf3b25b99693417d51b4c58cac6d | |
parent | dca8a26c90d6bbb4df6ca44a9205fad83af9bc76 (diff) |
[fix] Add yeetube-mode as major mode
-rw-r--r-- | yeetube.el | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -117,6 +117,15 @@ Example Usage: (defvar yeetube-last-played nil) +(defun yeetube-mode () + "Activate Yeetube Mode." + (interactive) + (kill-all-local-variables) + (setq major-mode 'yeetube-mode) + (setq mode-name "Yeetube Mode") + (display-line-numbers-mode 0) + (use-local-map yeetube-mode-map)) + (defun yeetube-get-url () "Get url for subject in *yeetube* buffer at point." (let ((video-url (cadr (nth (- (line-number-at-pos) 1) (reverse yeetube-content))))) |