src.nth.io/

summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-05-25 12:12:29 -0500
committerLuke Hoersten <[email protected]>2026-05-25 12:12:29 -0500
commit5bed487db4f6d2942a7cf63b2fa7f0ef6eeb0650 (patch)
treec223d185eae2637b3270b3374f2c2e53a55a6282 /init.el
parentfc5965c1bf30c4ed9ebf216e752d27413aa61104 (diff)
parent7ec2fcfaebd5cf9c464655534bcc5adce71906c5 (diff)
Merge origin/main: resolve claude-code-context conflict in favor of MELPA install
Diffstat (limited to 'init.el')
-rw-r--r--init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/init.el b/init.el
index 17bd8c8..6b5f9ff 100644
--- a/init.el
+++ b/init.el
@@ -342,6 +342,12 @@
(require 'auto-dark)
(setq auto-dark-allow-osascript t
auto-dark-themes '((solarized-dark) (solarized-light)))
+;; Trigger the macOS Automation permission prompt for System Events when
+;; launched from Spotlight. ns-do-applescript fails silently without the
+;; prompt, but shelling to osascript surfaces TCC.
+(when (eq system-type 'darwin)
+ (call-process "osascript" nil nil nil
+ "-e" "tell application \"System Events\" to tell appearance preferences to return dark mode"))
(auto-dark-mode 1)