diff --git a/modus-themes.el b/modus-themes.el index 2bf4506..0ce8a97 100644 --- a/modus-themes.el +++ b/modus-themes.el @@ -4125,10 +4125,9 @@ Disable other themes per `modus-themes-disable-other-themes'." (interactive) (if-let* ((themes (modus-themes-known-p modus-themes-to-toggle)) (one (car themes)) - (two (cadr themes)) - (current (modus-themes-get-current-theme))) - (modus-themes-load-theme (if (eq current one) two one)) - (modus-themes-load-theme (modus-themes-select-prompt "No valid theme to toggle; select other")))) + (two (cadr themes))) + (modus-themes-load-theme (if (eq (modus-themes-get-current-theme) one) two one)) + (modus-themes-load-theme (modus-themes-select-prompt "No two valid themes to toggle; select other")))) ;;;;; Rotate through a list of themes