help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detect if Emacs is running in -nw mode


From: Christian Herenz
Subject: Re: Detect if Emacs is running in -nw mode
Date: Sun, 30 Mar 2008 16:24:58 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.11) Gecko/20071128 SUSE/1.1.7-3.4 SeaMonkey/1.1.7 Mnenhy/0.7.5.0

Lennart Borgman (gmail) schrieb:


Do

  C-h f unless RET

to read the documentation for "unless". You can see there that is says "body forms".


C-h f unless RET yields here:
--
|unless is a Lisp macro in `subr'. |(unless COND &rest BODY)
                                          |
|If COND yields nil, do BODY, else return nil.
--

But what about more than one function inside the Body?
I do it like this atm (because i dont really understand the above help):

(unless window-system (menu-bar-mode nil))
(unless window-system (color-theme-arjen))

But is it possible to do the 2 functions withe evaluating the condition only 
once:

(unless window-system ((menu-bar-mode nil) (color-theme-arjen)))

Sorry, its a noob question :) But I really would like to know :)

Greets,
Christian


reply via email to

[Prev in Thread] Current Thread [Next in Thread]