diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2024-03-02 11:16:14 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2024-03-02 11:16:14 +0000 |
| commit | edede428fcde701a334249459f769758b98a1cdd (patch) | |
| tree | ce45385116c15132c6f7c79450e8e949eb08d9a3 /emacs | |
| parent | f35b5cc292299279ac9774151e44516b87406523 (diff) | |
emacs: Move my/macos-dark-p to the macOS dotfiles
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/functions.el | 6 |
1 files changed, 0 insertions, 6 deletions
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. |
