summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-16 22:59:48 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-10-16 22:59:48 +0200
commitc476b239ae3d31e5d4385162b8f2460040b1d5d3 (patch)
tree8148bc023025d6c7906732123c0930d1a314451e /.config
parentfbf5c4dbec4ed7f4a4d4142d998c903c94bbd023 (diff)
emacs: Use ‘defsubst’ instead of ‘defun’
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/mango-theme.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/.config/emacs/mango-theme.el b/.config/emacs/mango-theme.el
index 3771aca..ff187ed 100644
--- a/.config/emacs/mango-theme.el
+++ b/.config/emacs/mango-theme.el
@@ -6,9 +6,8 @@ Your average not-so-dark dark theme, because none of the other options
were exactly to my liking. It’s about time I had a theme to call my
own.")
-(defun mango-theme--color (name)
- "Get the RGB value of the color NAME from `mango-theme-colors-alist'."
- (declare (pure t) (side-effect-free t))
+(defsubst mango-theme--color (name)
+ "Get the RGB value of the COLOR."
(alist-get name mango-theme-colors-alist))
(defmacro mango-theme--generate-set-faces (&rest body)