diff options
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | init.el | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -15,3 +15,5 @@ claude-code-context.json /agent/ /tramp /tree-sitter/ +/.chatgpt-shell.el +/.time-zones.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) |
