[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trouble writing a conditional, or with lambda
From: |
Thomas Gehrlein |
Subject: |
Re: trouble writing a conditional, or with lambda |
Date: |
24 May 2003 17:37:30 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Florian von Savigny <florian265@uboot.com> writes:
> some basic lisp, I'm afraid, but I did consult the manual and tested
> in lisp-interaction-mode, but did not get any the wiser.
>
> I'm trying to get a function to work differently depending on whether
> emacs runs under X or on a terminal:
Not tested:
(if (eq window-system nil)
;; running under a terminal
(progn
(split-window)
(switch-to-buffer "*foo*"))
;; running under a window system
(select-frame (make-frame))
(set-frame-size (selected-frame) 50 24)
(set-frame-position (selected-frame) 150 120))
Thomas