summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-03-20 12:33:35 +0200
committerThanos Apollo <[email protected]>2024-03-20 12:33:35 +0200
commitf9c28a527a60811c4b60bdd3730ca25c9522739a (patch)
tree64f524ab859d3082aa3d64bf14a8dd05dba6eb5f
parent3a7f8e871d28c826cb1d45592e23de3dc920a6d5 (diff)
Add yeetube-enable-emojis
Custom boolean to enable/disable emojify mode
-rw-r--r--yeetube.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/yeetube.el b/yeetube.el
index 765e04d..c4a977f 100644
--- a/yeetube.el
+++ b/yeetube.el
@@ -111,6 +111,11 @@ Valid options include:
:type 'boolean
:group 'yeetube)
+(defcustom yeetube-enable-emojis t
+ "Enable emojis in *yeetube* buffer."
+ :type 'boolean
+ :group 'yeetube)
+
(defgroup yeetube-faces nil
"Faces used by yeetube."
:group 'yeetube
@@ -677,7 +682,8 @@ A and B are vectors."
(display-line-numbers-mode 0)
(tabulated-list-init-header)
(tabulated-list-print)
- (when (fboundp 'emojify-mode)
+ (when (and (fboundp 'emojify-mode)
+ yeetube-enable-emojis)
(emojify-mode 1)))
(provide 'yeetube)