Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs: check for no-window-system in .emacs

Tags:

emacs

is it possible, to check if emacs is running in --no-window-system (-nw) mode within the dot-emacs file (.emacs)? I would like to enable/include certain extension only if emacs is in window mode (/or not).

Kind regards, mefiX

like image 729
mefiX Avatar asked Oct 05 '10 08:10

mefiX


1 Answers

The variable window-system is nil if the selected frame is on a text-only terminal.

like image 170
pheaver Avatar answered Oct 21 '22 18:10

pheaver