aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-10-03 05:43:14 +0300
committerThanos Apollo <[email protected]>2023-10-03 05:43:14 +0300
commit6db62b303d2ff45a525bb0aa9948401cda80e58e (patch)
treecb6f75ce25a85e982d38dab4da3ea7586f919ae4
parente09de952d4428e0e8859c6a0f5e25e859e241f91 (diff)
yeetube-buffer: Add yeetube-faces group
Create a group yeetube-faces, as part of yeetube group, for all faces used Pointed out by Protesilaos Stavrou (Prot)
-rw-r--r--yeetube-buffer.el20
1 files changed, 15 insertions, 5 deletions
diff --git a/yeetube-buffer.el b/yeetube-buffer.el
index fcb6ba9..aad9d10 100644
--- a/yeetube-buffer.el
+++ b/yeetube-buffer.el
@@ -39,26 +39,36 @@ Emojis cause formatting issues, this should be off by default."
:safe #'booleanp
:group 'yeetube)
+(defgroup yeetube-faces nil
+ "Faces used by yeetube."
+ :group 'yeetube
+ :tag "Yeetube Faces"
+ :prefix 'yeetube-face)
(defface yeetube-buffer-face-header-query
'((t :inherit font-lock-function-name-face))
- "Face used for the video published date.")
+ "Face used for the video published date."
+ :group 'yeetube-faces)
(defface yeetube-buffer-face-duration
'((t :inherit font-lock-string-face))
- "Face used for the video duration.")
+ "Face used for the video duration."
+ :group 'yeetube-faces)
(defface yeetube-buffer-face-view-count
'((t :inherit font-lock-keyword-face))
- "Face used for the video view count.")
+ "Face used for the video view count."
+ :group 'yeetube-faces)
(defface yeetube-buffer-face-title
'((t :inherit font-lock-variable-use-face))
- "Face used for video title.")
+ "Face used for video title."
+ :group 'yeetube-faces)
(defface yeetube-buffer-face-channel
'((t :inherit font-lock-function-call-face))
- "Face used for video channel name.")
+ "Face used for video channel name."
+ :group 'yeetube-faces)
(defun yeetube-buffer-strip-emojis (str)
"Remove characters which are part of the `emoji' script from STR."