How do I get Emacs to evaluate a file when a frame is raised?

Posted by Brad Wright on Stack Overflow See other posts from Stack Overflow or by Brad Wright
Published on 2010-03-30T20:58:28Z Indexed on 2010/03/30 21:03 UTC
Read the original article Hit count: 443

Filed under:
|
|

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).

© Stack Overflow or respective owner

Related posts about emacs

Related posts about elisp