From edede428fcde701a334249459f769758b98a1cdd Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 2 Mar 2024 11:16:14 +0000 Subject: emacs: Move my/macos-dark-p to the macOS dotfiles --- emacs/functions.el | 6 ------ 1 file changed, 6 deletions(-) (limited to 'emacs/functions.el') diff --git a/emacs/functions.el b/emacs/functions.el index 85b45ac..accb52b 100644 --- a/emacs/functions.el +++ b/emacs/functions.el @@ -22,12 +22,6 @@ is active." ;; Theme Functions -(defun my/macos-dark-p () - "Returns non-nil if macOS is currently in dark mode, nil otherwise." - (interactive) - (string= (shell-command-to-string "defaults read -g AppleInterfaceStyle") - "Dark\n")) - (defun my/maybe-switch-theme (light-theme dark-theme enable-dark-theme-p) "Switch between themes. -- cgit v1.2.3-70-g09d2