all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How do you determine the running environment while in emacs?
@ 2009-01-24 22:39 Mason Smith
  2009-01-24 22:58 ` Andreas Politz
  2009-01-25 16:26 ` Peter Dyballa
  0 siblings, 2 replies; 3+ messages in thread
From: Mason Smith @ 2009-01-24 22:39 UTC (permalink / raw
  To: help-gnu-emacs

I'd like to write some code for .emacs buffer that will only run if
I'm not in terminal window. How can I tell from inside emacs whether
or not I'm running in a terminal? I've looked around the emacs manual
but can't seem to find anything.

Mason


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

* Re: How do you determine the running environment while in emacs?
  2009-01-24 22:39 How do you determine the running environment while in emacs? Mason Smith
@ 2009-01-24 22:58 ` Andreas Politz
  2009-01-25 16:26 ` Peter Dyballa
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Politz @ 2009-01-24 22:58 UTC (permalink / raw
  To: help-gnu-emacs

Mason Smith wrote:
> I'd like to write some code for .emacs buffer that will only run if
> I'm not in terminal window. How can I tell from inside emacs whether
> or not I'm running in a terminal? I've looked around the emacs manual
> but can't seem to find anything.
> 
> Mason


window-system is a variable defined in `C source code'.
Its value is x


Documentation:
Name of window system that Emacs is displaying through.
The value is a symbol--for instance, `x' for X windows.
The value is nil if Emacs is using a text-only terminal.

-ap


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

* Re: How do you determine the running environment while in emacs?
  2009-01-24 22:39 How do you determine the running environment while in emacs? Mason Smith
  2009-01-24 22:58 ` Andreas Politz
@ 2009-01-25 16:26 ` Peter Dyballa
  1 sibling, 0 replies; 3+ messages in thread
From: Peter Dyballa @ 2009-01-25 16:26 UTC (permalink / raw
  To: Mason Smith; +Cc: help-gnu-emacs


Am 24.01.2009 um 23:39 schrieb Mason Smith:

> How can I tell from inside emacs whether or not I'm running in a  
> terminal?


If window-system is undefined, i.e., nil.

--
Greetings

   Pete                                           0
                                            %-/\_//
                                             (*)(*)






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

end of thread, other threads:[~2009-01-25 16:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-24 22:39 How do you determine the running environment while in emacs? Mason Smith
2009-01-24 22:58 ` Andreas Politz
2009-01-25 16:26 ` Peter Dyballa

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.