summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles-darwin/emacs/functions.el6
-rw-r--r--emacs/functions.el6
2 files changed, 6 insertions, 6 deletions
diff --git a/dotfiles-darwin/emacs/functions.el b/dotfiles-darwin/emacs/functions.el
index 938ae97..4a39418 100644
--- a/dotfiles-darwin/emacs/functions.el
+++ b/dotfiles-darwin/emacs/functions.el
@@ -1,5 +1,11 @@
;; -*- lexical-binding: t -*-
+(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/modify-frame-parameters (parameters &optional frame)
(when (frame-parameter frame 'fullscreen)
(toggle-frame-maximized))
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.