* Customizing new frames
@ 2005-02-01 18:07 Denis Bueno
2005-02-01 18:25 ` Drew Adams
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Denis Bueno @ 2005-02-01 18:07 UTC (permalink / raw)
I have certain font settings set using `set-default-font', in my
.emacs. Specifically,
(set-default-font "-*-clean-medium-r-normal--*-120-*-*-*-*-*-*")
When I open a new frame (C-x 5 2), it's like my font settings don't
get "remembered." Is there a way to set the default font for the first
frame and every subsequent frame?
--
Denis Bueno
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: Customizing new frames
2005-02-01 18:07 Customizing new frames Denis Bueno
@ 2005-02-01 18:25 ` Drew Adams
2005-02-01 18:39 ` August
2005-02-01 18:48 ` Edward O'Connor
2 siblings, 0 replies; 5+ messages in thread
From: Drew Adams @ 2005-02-01 18:25 UTC (permalink / raw)
I have certain font settings set using `set-default-font', in my
.emacs. Specifically,
(set-default-font "-*-clean-medium-r-normal--*-120-*-*-*-*-*-*")
When I open a new frame (C-x 5 2), it's like my font settings don't
get "remembered." Is there a way to set the default font for the first
frame and every subsequent frame?
You need to add your change to variable `default-frame-alist', and then save
that variable (using Customize).
See http://www.emacswiki.org/cgi-bin/wiki/CustomizingAndSaving for an
explanation (scroll down to section Setting and Saving Frame Parameters).
See command `set-frame-alist-parameter-from-frame' in library
http://www.emacswiki.org/elisp/frame-cmds.el, which you can use to easily
transfer your font setting to `default-frame-alist'.
HTH,
Drew
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Customizing new frames
2005-02-01 18:07 Customizing new frames Denis Bueno
2005-02-01 18:25 ` Drew Adams
@ 2005-02-01 18:39 ` August
2005-02-01 20:18 ` Denis Bueno
2005-02-01 18:48 ` Edward O'Connor
2 siblings, 1 reply; 5+ messages in thread
From: August @ 2005-02-01 18:39 UTC (permalink / raw)
On tis, 2005-02-01 at 13:07 -0500, Denis Bueno wrote:
> I have certain font settings set using `set-default-font', in my
> .emacs. Specifically,
>
> (set-default-font "-*-clean-medium-r-normal--*-120-*-*-*-*-*-*")
>
> When I open a new frame (C-x 5 2), it's like my font settings don't
> get "remembered." Is there a way to set the default font for the first
> frame and every subsequent frame?
>
Set the font in `default-frame-alist'.
--
August
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Customizing new frames
2005-02-01 18:39 ` August
@ 2005-02-01 20:18 ` Denis Bueno
0 siblings, 0 replies; 5+ messages in thread
From: Denis Bueno @ 2005-02-01 20:18 UTC (permalink / raw)
Cc: help-gnu-emacs
Thanks very much. Solved my problem!
On Tue, 01 Feb 2005 19:39:27 +0100, August <fusionfive@comhem.se> wrote:
> On tis, 2005-02-01 at 13:07 -0500, Denis Bueno wrote:
> > I have certain font settings set using `set-default-font', in my
> > .emacs. Specifically,
> >
> > (set-default-font "-*-clean-medium-r-normal--*-120-*-*-*-*-*-*")
> >
> > When I open a new frame (C-x 5 2), it's like my font settings don't
> > get "remembered." Is there a way to set the default font for the first
> > frame and every subsequent frame?
> >
>
> Set the font in `default-frame-alist'.
>
> --
> August
>
>
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>
--
Denis Bueno
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Customizing new frames
2005-02-01 18:07 Customizing new frames Denis Bueno
2005-02-01 18:25 ` Drew Adams
2005-02-01 18:39 ` August
@ 2005-02-01 18:48 ` Edward O'Connor
2 siblings, 0 replies; 5+ messages in thread
From: Edward O'Connor @ 2005-02-01 18:48 UTC (permalink / raw)
> I have certain font settings set using `set-default-font', in my
> .emacs. Specifically,
>
> (set-default-font "-*-clean-medium-r-normal--*-120-*-*-*-*-*-*")
>
> When I open a new frame (C-x 5 2), it's like my font settings don't
> get "remembered." Is there a way to set the default font for the first
> frame and every subsequent frame?
Assuming you haven't otherwise frobbed `default-frame-alist' or
`initial-frame-alist', you should be able to do something like this:
(setq default-frame-alist
'((font . "-*-clean-medium-r-normal--*-120-*-*-*-*-*-*)))
(setq initial-frame-alist default-frame-alist)
--
Edward O'Connor
ted@oconnor.cx
Ense petit placidam sub libertate quietem.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-02-01 20:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-01 18:07 Customizing new frames Denis Bueno
2005-02-01 18:25 ` Drew Adams
2005-02-01 18:39 ` August
2005-02-01 20:18 ` Denis Bueno
2005-02-01 18:48 ` Edward O'Connor
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.