From f9c28a527a60811c4b60bdd3730ca25c9522739a Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 20 Mar 2024 12:33:35 +0200 Subject: Add yeetube-enable-emojis Custom boolean to enable/disable emojify mode --- yeetube.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3