all repos — nixfiles @ 5c09d2dfaf73bd46320641f0bd122f0b855c0b3c

System and user configuration, managed by nix and home-manager

Emacs: enable calling my/set-dark-or-light-theme
Alan Pearce alan@alanpearce.eu
Sat, 08 Oct 2022 01:32:49 +0200
commit

5c09d2dfaf73bd46320641f0bd122f0b855c0b3c

parent

656d8e4d87f89925bfbe627681d954528051183e

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -75,6 +75,7 @@ modus-themes-diffs 'desaturated)               (let ((light-mode-theme 'modus-operandi)
                     (dark-mode-theme 'modus-vivendi))
                 (defun my/set-dark-or-light-theme ()
+                  (interactive)
                   (let ((appearance (plist-get (mac-application-state) :appearance)))
                     (mapc #'disable-theme custom-enabled-themes)
                     (cond ((equal appearance "NSAppearanceNameAqua")