In my .emacs
file, I have commands that only makes sense in graphical mode (like (set-frame-size (selected-frame) 166 100)
). How do I run these onl
window-system is a variable defined in `C source code'. Its value is x
Documentation: Name of window system through which the selected frame is displayed. The value is a symbol--for instance, `x' for X windows. The value is nil if the selected frame is on a text-only-terminal.
Basically do a:
(if window-system
(progn
(something)
(something-else)))