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

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

Opening *Calendar* in its own frame


From: Jonathon Isaac Swiderski
Subject: Opening *Calendar* in its own frame
Date: Mon, 20 Jan 2003 15:16:19 -0500

I'm using v20.7.  I've the following in my .emacs to start speedbar and
calendar when in a window system.  Since i was using X11 when I got it from
a classmate, that's what it checks for, although it seems to work just fine
under Solaris 8's CDE.

(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.  How can I do this?  I
thought of (make-frame (calendar)), but when I just now did in emacs

M-x eval-expression (make-frame (calendar))

, I got two of them -- one in a new frame, and one in the old frame.  (Yes,
I know they're the same buffer, but that's beside the point.)  Is it
possible to have the calendar just be in the one (newly-created) frame,
somewhat like the speedbar?

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.  Currently the only window-system i use on a regular
basis is Solaris 8's CDE.

Thanks.

-- 
Jonathon Isaac Swiderski \\ dangercat-20@dangercat.net
cs.oberlin.edu/~jswiders  \\  www.dangercat.net/resume

Reason number #103 to use Linux: Because Linux users
are the social 3l337.



reply via email to

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