unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to Get a Font Loaded Automatically on Start Up
@ 2007-09-29 18:10 kvnsmnsn
  2007-09-30 16:50 ` weber
  2007-10-02  4:13 ` Steven L.
  0 siblings, 2 replies; 6+ messages in thread
From: kvnsmnsn @ 2007-09-29 18:10 UTC (permalink / raw)
  To: help-gnu-emacs

When I bring up an Emacs window I can click on <Options>, select
<Set Font/Fontset...> from the menu, and then select <Courier > 10> to
get precisely the font I want.  But I have to do this every time I
bring up an Emacs window.  Is there something I can put in my ".emacs"
file that will do this automatically for me every time I bring up an
Emacs window?  Any information on this would be greatly appreciated.

                                ---Kevin Simonson

"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to Get a Font Loaded Automatically on Start Up
  2007-09-29 18:10 How to Get a Font Loaded Automatically on Start Up kvnsmnsn
@ 2007-09-30 16:50 ` weber
  2007-09-30 18:02   ` Peter Dyballa
  2007-10-01 15:54   ` kvnsmnsn
  2007-10-02  4:13 ` Steven L.
  1 sibling, 2 replies; 6+ messages in thread
From: weber @ 2007-09-30 16:50 UTC (permalink / raw)
  To: help-gnu-emacs

On Sep 29, 3:10 pm, kvnsm...@hotmail.com wrote:
> When I bring up an Emacs window I can click on <Options>, select
> <Set Font/Fontset...> from the menu, and then select <Courier > 10> to
> get precisely the font I want.  But I have to do this every time I
> bring up an Emacs window.  Is there something I can put in my ".emacs"
> file that will do this automatically for me every time I bring up an
> Emacs window?  Any information on this would be greatly appreciated.
>
>                                 ---Kevin Simonson
>
> "You'll never get to heaven, or even to LA,
> if you don't believe there's a way."
> from _Why Not_

What do you mean by "bring up an emacs window" ?
-weber

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to Get a Font Loaded Automatically on Start Up
  2007-09-30 16:50 ` weber
@ 2007-09-30 18:02   ` Peter Dyballa
  2007-10-01 15:54   ` kvnsmnsn
  1 sibling, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2007-09-30 18:02 UTC (permalink / raw)
  To: emacs list


Am 30.09.2007 um 15:10 schrieb kvnsm...@hotmail.com:

> Is there something I can put in my ".emacs" file that will do this  
> automatically for me every time I bring up an Emacs window?

	(setq initial-frame-alist '(
	  (border-color     . "#4e3832")
	  (foreground-color . "grey10")
	  (background-color . "AliceBlue")
	  (active-alpha     . 0.875)
	  (inactive-alpha   . 0.75)
	  (font . "fontset-10pt_lucidatypewriter")
	  (top . 5) (left . 500) (width . 106) (height . 50)
	  )
	)

There is also default-frame-alist.

--
Greetings

   Pete

The mathematician who pursues his studies without clear views of this  
matter, must often have the uncomfortable feeling that his paper and  
pencil surpass him in intelligence.
                                            Ernst Mach

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to Get a Font Loaded Automatically on Start Up
  2007-09-30 16:50 ` weber
  2007-09-30 18:02   ` Peter Dyballa
@ 2007-10-01 15:54   ` kvnsmnsn
  2007-10-16 21:55     ` Giacomo Boffi
  1 sibling, 1 reply; 6+ messages in thread
From: kvnsmnsn @ 2007-10-01 15:54 UTC (permalink / raw)
  To: help-gnu-emacs

Weber posted:

=What do you mean by "bring up an emacs window" ?

     At my Unix prompt I type in "emacs EmacsFont.Txt &", and an Emacs
window comes up on my terminal, with a font size of about 12.  What I
want is a font size of 10.  I can always change its font size using
the <Set Font/Fontset...> menu I mentioned, but it would be nice if I
could get that font size to come up automatically, when the Emacs edi-
tor first brings up the window.  Anybody know how to do that?

                                ---Kevin Simonson

"You'll never get to heaven, or even to LA,
if you don't believe there's a way."
from _Why Not_

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to Get a Font Loaded Automatically on Start Up
  2007-09-29 18:10 How to Get a Font Loaded Automatically on Start Up kvnsmnsn
  2007-09-30 16:50 ` weber
@ 2007-10-02  4:13 ` Steven L.
  1 sibling, 0 replies; 6+ messages in thread
From: Steven L. @ 2007-10-02  4:13 UTC (permalink / raw)
  To: help-gnu-emacs

kvnsmnsn@hotmail.com wrote:
> When I bring up an Emacs window I can click on <Options>, select
> <Set Font/Fontset...> from the menu, and then select <Courier > 10> to
> get precisely the font I want.  But I have to do this every time I
> bring up an Emacs window.  Is there something I can put in my ".emacs"
> file that will do this automatically for me every time I bring up an
> Emacs window? 

The function that I use is "custom-set-faces"
But you don't even have to code it yourself in your .emacs file.

You can use the Edit Options... feature.  Find the Basic Faces 
customization group, set the font and fontsize to whatever you want, and 
then select State:Save for future sessions.
That will append a call to "custom-set-faces" to your .emacs file, so 
that it will be invoked the next time you start emacs.

BTW, when you change the fontsize and font, you may also want to change 
the default size of the window that comes up too.  I use a big fontsize 
of 120 (my eyes aren't what they used to be), so I have to make the 
window have fewer characters.  In my .emacs file I added

(set-frame-parameter nil 'height 34)
(set-frame-parameter nil 'width 84)

to make emacs come up in a 34 x 84 window every time.


-- 
Steven L.
Email:  sdlitvin@earthlinkNOSPAM.net
Remove the NOSPAM before replying to me.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to Get a Font Loaded Automatically on Start Up
  2007-10-01 15:54   ` kvnsmnsn
@ 2007-10-16 21:55     ` Giacomo Boffi
  0 siblings, 0 replies; 6+ messages in thread
From: Giacomo Boffi @ 2007-10-16 21:55 UTC (permalink / raw)
  To: help-gnu-emacs

kvnsmnsn@hotmail.com writes:
>      At my Unix prompt I type in "emacs EmacsFont.Txt &", and an Emacs
> window comes up on my terminal, with a font size of about 12.  What
> I want is a font size of 10.  I can always change its font size
> using the <Set Font/Fontset...> menu I mentioned, but it would be
> nice if I could get that font size to come up automatically, when
> the Emacs edi- tor first brings up the window.  Anybody know how to
> do that?

(info "(emacs)X resources")
  /------------------------^
  | put the cursor after the right ) and press C-x C-e

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-16 21:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-29 18:10 How to Get a Font Loaded Automatically on Start Up kvnsmnsn
2007-09-30 16:50 ` weber
2007-09-30 18:02   ` Peter Dyballa
2007-10-01 15:54   ` kvnsmnsn
2007-10-16 21:55     ` Giacomo Boffi
2007-10-02  4:13 ` Steven L.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).