all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Save the font setting (Emacs Windows)
@ 2006-06-21  5:20 tvn
  2006-06-21  7:21 ` sross
  0 siblings, 1 reply; 10+ messages in thread
From: tvn @ 2006-06-21  5:20 UTC (permalink / raw)


Whenever I open any new Emacs (Win32 version) window, the first thing I
do is shift + left click on it then choose font size 14 bold.   Can
this be saved some how in the .emacs file ?   Thanks

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

* Re: Save the font setting (Emacs Windows)
  2006-06-21  5:20 Save the font setting (Emacs Windows) tvn
@ 2006-06-21  7:21 ` sross
  2006-06-21  9:25   ` martin
  0 siblings, 1 reply; 10+ messages in thread
From: sross @ 2006-06-21  7:21 UTC (permalink / raw)


tvn wrote:
> Whenever I open any new Emacs (Win32 version) window, the first thing I
> do is shift + left click on it then choose font size 14 bold.   Can
> this be saved some how in the .emacs file ?   Thanks

Try the 'Options' menu and select 'Save Options' this will write your
font selection into you .emacs file.

Cheers,
 Sean.

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

* Re: Save the font setting (Emacs Windows)
  2006-06-21  7:21 ` sross
@ 2006-06-21  9:25   ` martin
  2006-06-21 13:55     ` tvn
  2006-06-21 15:52     ` Norbert Melzer
  0 siblings, 2 replies; 10+ messages in thread
From: martin @ 2006-06-21  9:25 UTC (permalink / raw)



"s" == sross  <rosssd@gmail.com> writes:
 s> Newsgroups: gnu.emacs.help
 s> Date: 21 Jun 2006 00:21:36 -0700
 s> Organization: http://groups.google.com
 s> 
 s> tvn wrote:
 >> Whenever I open any new Emacs (Win32 version) window, the first thing I
 >> do is shift + left click on it then choose font size 14 bold.   Can
 >> this be saved some how in the .emacs file ?   Thanks
 s> 
 s> Try the 'Options' menu and select 'Save Options' this will write your
 s> font selection into you .emacs file.

not true for windows version.
put something like
(set-default-font "-outline-Courier New-normal-r-normal-normal-*-*-120-120-c-*-*-#161")
into your .emacs.

 s> 
 s> Cheers,
 s>  Sean.
 s> 
 s> 
-- 
parozusa at web dot de

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

* Re: Save the font setting (Emacs Windows)
  2006-06-21  9:25   ` martin
@ 2006-06-21 13:55     ` tvn
  2006-06-21 14:33       ` Chris McMahan
  2006-06-21 15:52     ` Norbert Melzer
  1 sibling, 1 reply; 10+ messages in thread
From: tvn @ 2006-06-21 13:55 UTC (permalink / raw)



> (set-default-font "-outline-Courier New-normal-r-normal-normal-*-*-120-120-c-*-*-#161")


Thanks, that works when openning emacs normally but when open emacs
from emacs (e.g., Control+x 5 2   ) it reverts back to default font.





> -- 
> parozusa at web dot de

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

* Re: Save the font setting (Emacs Windows)
  2006-06-21 13:55     ` tvn
@ 2006-06-21 14:33       ` Chris McMahan
  2006-06-21 15:04         ` It's me FKtPp ;)
  2006-06-21 15:39         ` Drew Adams
  0 siblings, 2 replies; 10+ messages in thread
From: Chris McMahan @ 2006-06-21 14:33 UTC (permalink / raw)



The variable default-frame-alist controls the fonts and such for
frames created this way


- Chris

"tvn" <nguyenthanhvuh@gmail.com> writes:

>> (set-default-font "-outline-Courier New-normal-r-normal-normal-*-*-120-120-c-*-*-#161")
>
>
> Thanks, that works when openning emacs normally but when open emacs
> from emacs (e.g., Control+x 5 2   ) it reverts back to default font.
>
>> -- 
>> parozusa at web dot de
>

-- 
     (.   .)
  =ooO=(_)=Ooo=====================================
  Chris McMahan | first_initiallastname@one.dot.net
  =================================================

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

* Re: Save the font setting (Emacs Windows)
  2006-06-21 14:33       ` Chris McMahan
@ 2006-06-21 15:04         ` It's me FKtPp ;)
  2006-06-21 15:39         ` Drew Adams
  1 sibling, 0 replies; 10+ messages in thread
From: It's me FKtPp ;) @ 2006-06-21 15:04 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

Chris McMahan wrote:
> The variable default-frame-alist controls the fonts and such for
> frames created this way
> 
> 
> - Chris
> 
> "tvn" <nguyenthanhvuh@gmail.com> writes:
> 
>>> (set-default-font "-outline-Courier New-normal-r-normal-normal-*-*-120-120-c-*-*-#161")
>>
>> Thanks, that works when openning emacs normally but when open emacs
>> from emacs (e.g., Control+x 5 2   ) it reverts back to default font.
>>
>>> -- 
>>> parozusa at web dot de
> 

You can also do this by tweaking the windows registery. See attachment
for example.

[-- Attachment #2: Emacs.reg.txt --]
[-- Type: text/plain, Size: 909 bytes --]

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\GNU\Emacs]
"emacs.toolBar"="0"
"Emacs.Fontset-0"="-outline-Courier New-normal-r-normal-normal-16-120-96-96-c-*-fontset-fk,katakana-jisx0201:-outline-MS Mincho-normal-r-normal-normal-16-120-96-96-c-*-jisx0208-sjis,latin-jisx0201:-outline-MS Mincho-normal-r-normal-normal-16-120-96-96-c-*-jisx0208-sjis,japanese-jisx0208:-outline-MS Gothic-normal-r-normal-normal-16-120-96-96-c-*-jisx0208-sjis,japanese-jisx0208-1978:-outline-MS Gothic-normal-r-normal-normal-16-120-96-96-c-*-jisx0208-sjis,chinese-big5-1:-outline-MingLiU-normal-r-normal-normal-16-120-96-96-c-*-big5*-*,chinese-big5-2:-outline-MingLiU-normal-r-normal-normal-16-120-96-96-c-*-big5*-*,chinese-gb2312:-outline-ÐÂËÎÌå-normal-r-normal-normal-16-120-96-96-c-*-gb2312*-*,korean-ksc5601:-outline-DotumChe-normal-r-normal-normal-16-120-96-96-c-*-ksc5601.1987-*"
"Emacs.Font"="fontset-fk"
"Emacs.geometry"="80x36"


[-- Attachment #3: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

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

* RE: Save the font setting (Emacs Windows)
  2006-06-21 14:33       ` Chris McMahan
  2006-06-21 15:04         ` It's me FKtPp ;)
@ 2006-06-21 15:39         ` Drew Adams
  1 sibling, 0 replies; 10+ messages in thread
From: Drew Adams @ 2006-06-21 15:39 UTC (permalink / raw)


    >> (set-default-font "-outline-Courier New-normal-r-normal...

    > Thanks, that works when openning emacs normally but when open emacs
    > from emacs (e.g., Control+x 5 2) it reverts back to default font.

    The variable default-frame-alist controls the fonts and such for
    frames created this way

Library frame-cmds.el can help here:
http://www.emacswiki.org/cgi-bin/emacs/frame-cmds.el.

After you get a frame the way you want it, no matter how you tweaked it
(font, background,...), you can save one or all of its parameters in the
value of `default-frame-alist' (or `initial-frame-alist', or any other frame
alist) by using command `set-frame-alist-parameter-from-frame' or
'set-all-frame-alist-parameters-from-frame'. You can use option
'frame-parameters-to-exclude' to exclude some parameters from copying by
`set-all*'.

After you have updated `default-frame-alist', use `M-x customize-customized'
to go to its Customize buffer and then save it for future Emacs sessions.

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

* Re: Save the font setting (Emacs Windows)
  2006-06-21  9:25   ` martin
  2006-06-21 13:55     ` tvn
@ 2006-06-21 15:52     ` Norbert Melzer
  2006-06-21 16:27       ` Norbert Melzer
  1 sibling, 1 reply; 10+ messages in thread
From: Norbert Melzer @ 2006-06-21 15:52 UTC (permalink / raw)


martin wrote:

> not true for windows version.
> put something like
> (set-default-font "-outline-Courier New-normal-r-normal-normal-*-*-120-120-c-*-*-#161")
> into your .emacs.

Can you explain this to me?

I tried

(set-default-font
"-outline-Fixedsys-normal-r-normal-normal-*-*-120-120-c-*-*-#161")

(without a Newline :-) )

But all what happens is that emacs opens with Courier New in 12pt
instead of the previews 10...

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

* Re: Save the font setting (Emacs Windows)
  2006-06-21 15:52     ` Norbert Melzer
@ 2006-06-21 16:27       ` Norbert Melzer
  2006-06-21 17:01         ` Kevin Rodgers
  0 siblings, 1 reply; 10+ messages in thread
From: Norbert Melzer @ 2006-06-21 16:27 UTC (permalink / raw)


Norbert Melzer schrieb:
> martin wrote:
> 
>> not true for windows version.
>> put something like
>> (set-default-font "-outline-Courier New-normal-r-normal-normal-*-*-120-120-c-*-*-#161")
>> into your .emacs.
> 
> Can you explain this to me?
> 
> I tried
> 
> (set-default-font
> "-outline-Fixedsys-normal-r-normal-normal-*-*-120-120-c-*-*-#161")
> 
> (without a Newline :-) )
> 
> But all what happens is that emacs opens with Courier New in 12pt
> instead of the previews 10...

OK, I got it now, I played a while with

(insert (prin1-to-string (x-list-fonts "*")))

and tried the one with Fixedsys in there :-)

Now I have it working with

(set-default-font
"-raster-Fixedsys-normal-r-normal-normal-18-108-120-120-c-100-iso10646-1")

(again without Newline)

But I dont really understand what this mean, so an explanation would
still be great :-)

Bye
Norbert

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

* Re: Save the font setting (Emacs Windows)
  2006-06-21 16:27       ` Norbert Melzer
@ 2006-06-21 17:01         ` Kevin Rodgers
  0 siblings, 0 replies; 10+ messages in thread
From: Kevin Rodgers @ 2006-06-21 17:01 UTC (permalink / raw)


Norbert Melzer wrote:
> OK, I got it now, I played a while with
> 
> (insert (prin1-to-string (x-list-fonts "*")))
> 
> and tried the one with Fixedsys in there :-)
> 
> Now I have it working with
> 
> (set-default-font
> "-raster-Fixedsys-normal-r-normal-normal-18-108-120-120-c-100-iso10646-1")
> 
> (again without Newline)
> 
> But I dont really understand what this mean, so an explanation would
> still be great :-)

In Emacs 22, `C-h r i font RET' takes you directly to the Font
Specification Options section of the Emacs manual.  (In earlier
versions, replace `C-h r' with `C-h i d m emacs RET'.)

You can also google "X Logical Font Description" or XLFD.

-- 
Kevin

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

end of thread, other threads:[~2006-06-21 17:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-21  5:20 Save the font setting (Emacs Windows) tvn
2006-06-21  7:21 ` sross
2006-06-21  9:25   ` martin
2006-06-21 13:55     ` tvn
2006-06-21 14:33       ` Chris McMahan
2006-06-21 15:04         ` It's me FKtPp ;)
2006-06-21 15:39         ` Drew Adams
2006-06-21 15:52     ` Norbert Melzer
2006-06-21 16:27       ` Norbert Melzer
2006-06-21 17:01         ` Kevin Rodgers

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.