all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to tell emacs is running under term or windows?
@ 2006-10-07  2:37 Corsair
  2006-10-07  3:48 ` Alok G. Singh
       [not found] ` <mailman.7851.1160192955.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Corsair @ 2006-10-07  2:37 UTC (permalink / raw)


Hi everybody!  I have a setting concerning the frame size in my
.emacs:

    (set-frame-size (car (frame-list)) 100 45)

However, when started in a term, emacs will display an error:

    X windows are not in use or not initialized.

So the `set-frame-size' function should be called only when running
under windows system.  The problem is, how to tell that emacs is
running under a term or a windows system, or, to be simple, how to
tell if the `-nw' option is issued when starting emacs?

Thanks.

-- 
Fear is the path to the Darkside.
Fear leads to anger,
Anger leads to hate,
Hate leads to suffering.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-10-07  4:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-07  2:37 How to tell emacs is running under term or windows? Corsair
2006-10-07  3:48 ` Alok G. Singh
     [not found] ` <mailman.7851.1160192955.9609.help-gnu-emacs@gnu.org>
2006-10-07  4:21   ` Corsair

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.