emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/modus-themes 3f330da835 3/4: Simplify modus-themes-togg


From: ELPA Syncer
Subject: [elpa] externals/modus-themes 3f330da835 3/4: Simplify modus-themes-toggle
Date: Tue, 18 Jul 2023 00:59:30 -0400 (EDT)

branch: externals/modus-themes
commit 3f330da835b5d2b0871c1c0baa469b47b7bd3477
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Simplify modus-themes-toggle
---
 modus-themes.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modus-themes.el b/modus-themes.el
index 32f87a6806..c4ca2b2b09 100644
--- a/modus-themes.el
+++ b/modus-themes.el
@@ -1367,9 +1367,7 @@ Disable other themes per 
`modus-themes-disable-other-themes'."
   (if-let* ((themes (modus-themes--toggle-theme-p))
             (one (car themes))
             (two (cadr themes)))
-      (if (eq (car custom-enabled-themes) one)
-          (modus-themes-load-theme two)
-        (modus-themes-load-theme one))
+      (modus-themes-load-theme (if (eq (car custom-enabled-themes) one) two 
one))
     (modus-themes-load-theme (modus-themes--select-prompt))))
 
 (defun modus-themes--list-colors-render (buffer theme &optional mappings &rest 
_)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]