From c476b239ae3d31e5d4385162b8f2460040b1d5d3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Oct 2024 22:59:48 +0200 Subject: emacs: Use ‘defsubst’ instead of ‘defun’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/emacs/mango-theme.el | 5 ++--- 1 file 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) -- cgit v1.2.3