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

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

Re: Opening *Calendar* in its own frame


From: Glenn Morris
Subject: Re: Opening *Calendar* in its own frame
Date: Mon, 20 Jan 2003 21:17:24 +0000
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html)

Jonathon Isaac Swiderski wrote:

> I'm using v20.7.
[...]
> (if (eq window-system 'x) ; if we are running under X windows...
>     (progn
>       (calendar)
>       (speedbar)))
>
>
> I'd like to have the calendar be in its own frame. 

(require 'cal-x)
(setq calendar-setup 'calendar-only)

I think it's a bug that you have to require cal-x (same in Emacs-21.x, by
the way). There are some other options for calendar-setup you might like to
investigate.

> And if someone knows of a better way to do the
> if-there's-a-graphical-environment check, i'd appreciate tips on that,
> too, although I recall reading here previously that there doesn't seem to
> be a good way to do it.

(when (display-graphic-p)
  (calendar)
  (speedbar))

would be the recommended test in Emacs-21.x, but for 20.7 I'm not sure if
there is anything better than window-system.


reply via email to

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