How do I get Emacs to evaluate a file when a frame is raised?
- by Brad Wright
Basically I have my Emacs set up so it has a GUI specific elisp, but when starting it in daemon mode this doesn't evaluate. The code is something like:
;; gui.el
(when window-system
(progn
;; do stuff here
))
I'd like this file (or at least the code within it—perhaps a funtion) to be re-evaluated when I run emacsclient -c on the command line, as I miss out on all my font-lock and color-theme goodness (as I have that stuff set to runonly when a GUI exists).