radian-software / radian

🍉 Dotfiles that marry elegance and practicality.
MIT License
491 stars 47 forks source link

Daemon support #509

Open eginhard opened 2 years ago

eginhard commented 2 years ago

I usually use Emacs by starting a daemon that I leave running and then connect to it in graphical mode with emacsclient -c. This doesn't seem to work well with Radian.

When starting the daemon, display-graphic-p is nil, so the toolbar and other UI elements are not disabled and will show in the clients. The zerodark theme also uses fallback colours because it sees that the daemon doesn't have true colour support although this wouldn't be an issue in the clients.

Is there a way to better support this workflow in Radian?

raxod502 commented 1 year ago

Yeah, this is a known problem. I too have tried to use the daemon in the past but have abandoned it because of edge cases that seemed to be difficult to work around. I believe the only way to get things even halfway workable is to start the daemon as a graphical instance of Emacs. If you start it from the terminal, then it's locked to a broken tty compatibility mode. I have tried to figure out how to get both graphical and terminal clients to coexist in the same Emacs daemon, but to no avail.

hrehfeld commented 1 year ago

I've been using nothing but daemon for a few years.

I have problems with desktop restoring, and fonts only show after creating a second frame, but otherwise everything seems to work fine.

raxod502 commented 1 year ago

@hrehfeld Did you have to do any particular configuration to make things work? Color themes often query display-graphic-p so I'm surprised this would work out of the box.