[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
- Re: Detect if Emacs is running in -nw mode, (continued)
- Re: Detect if Emacs is running in -nw mode, Lennart Borgman (gmail), 2008/03/29
- RE: Detect if Emacs is running in -nw mode, Drew Adams, 2008/03/29
- Message not available
- Re: Detect if Emacs is running in -nw mode, Will Parsons, 2008/03/29
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/29
- Re: Detect if Emacs is running in -nw mode, BVK, 2008/03/29
- Re: Detect if Emacs is running in -nw mode, Rupert Swarbrick, 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Lennart Borgman (gmail), 2008/03/30
- Message not available
- Re: Detect if Emacs is running in -nw mode,
Christian Herenz <=
- Re: Detect if Emacs is running in -nw mode, Lennart Borgman (gmail), 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Peter Dyballa, 2008/03/30
- Message not available
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/30
- Message not available
- Re: Detect if Emacs is running in -nw mode, Rupert Swarbrick, 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Tim X, 2008/03/31
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/31
- Re: Detect if Emacs is running in -nw mode, Nuno J. Silva, 2008/03/31
- Re: Detect if Emacs is running in -nw mode, Barry Margolin, 2008/03/30
- Re: Detect if Emacs is running in -nw mode, Christian Herenz, 2008/03/31