summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yeetube.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/yeetube.el b/yeetube.el
index 83e03e8..04c2bf9 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -85,10 +85,13 @@ Example Usage:
:safe #'booleanp
:group 'yeetube)
-;; TODO: Make it as derived from special mode
-(define-minor-mode yeetube-mode
+(define-derived-mode yeetube-mode special-mode "Yeetube"
"Yeetube mode."
:init-value nil
+ :interactive nil
+ (abbrev-mode 0)
+ (setf buffer-read-only nil)
+ (display-line-numbers-mode 0)
:lighter " yeetube-mode"
:keymap (let ((yeetube-mode-map (make-sparse-keymap)))
(define-key yeetube-mode-map (kbd "RET") 'yeetube-play)