News for hackers. Stuff that matters.
Re:Emacs’s Builtin Elisp Cheat Sheet by morelisp on Wednesday July 06, 2022 @02:30PM (#32004913)
> a shell script to tell that program to call emacsclient, a LaunchAgent to keep it running, an unholy build of Emacs with all of the GNU-unapproved Cocoa integrations that some kind soul is maintaining, and only THEN a piece of ELisp (which is also calling out to AppleScript) to actually change the theme[1]

Why isn't your Emacs session running dark-notify itself, reading its output, and switching accordingly? That seems to remove the need for shell script running emacsclient, the launch agent, and the OSA integration. (But also, I thought ns-do-applescript was stock Emacs? At least I had some ELisp using it and I only ever used emacsformacosox.)

Re:Emacs’s Builtin Elisp Cheat Sheet by rollcat on Thursday July 07, 2022 @06:16PM (#32020266)
> Why isn't your Emacs session running dark-notify itself, reading its output, and switching accordingly?

Thanks for the hint. Maybe I would try that first, if it popped into my head when I was originally writing it; but at this point, it works, and I want less stuff in init.el.

Also I will likely reuse the dark-notify script to change the theme in Terminal.app as well, and Terminal.app doesn't have an ELisp runtime. (Also very weird that Apple's own software doesn't properly support this.)

> But also, I thought ns-do-applescript was stock Emacs?

I don't know. I've switched to macOS only a couple years ago, and the Emacs build I've initially used didn't have it.