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

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

RE: Customizing new frames


From: Drew Adams
Subject: RE: Customizing new frames
Date: Tue, 1 Feb 2005 10:25:10 -0800

    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




reply via email to

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