unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Font and Window Size in emacs
@ 2005-07-31 15:26 Joe Hesse
  2005-07-31 15:50 ` Peter Dyballa
       [not found] ` <mailman.2159.1122825781.20277.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Joe Hesse @ 2005-07-31 15:26 UTC (permalink / raw)


Hi,
I am using emacs under Linux.  I have two questions.

1.  When I press the shift key and left mouse button I get a font selection 
menu.  How can I make my choice of 14 pt Courier permanent without issuing 
the command each time?
2.  How can I make emacs come up in full screen mode each time it starts?

Thank you for your help.
Joe 

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

* Re: Font and Window Size in emacs
  2005-07-31 15:26 Font and Window Size in emacs Joe Hesse
@ 2005-07-31 15:50 ` Peter Dyballa
       [not found] ` <mailman.2159.1122825781.20277.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2005-07-31 15:50 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 31.07.2005 um 17:26 schrieb Joe Hesse:

> Hi,
> I am using emacs under Linux.  I have two questions.
>
> 1.  When I press the shift key and left mouse button I get a font 
> selection
> menu.  How can I make my choice of 14 pt Courier permanent without 
> issuing
> the command each time?

Define some more fonts and fontsets à la:

(setq x-fixed-font-alist
    '("X11 Font Menu"
       ("Misc fixed"
;; For these, we specify the pixel height and width.
        ("«ProFont»" "»ProFont«")
        ("ISO 10646-1" 
"-misc-profontwindows-medium-r-normal--0-*-*-*-m-*-iso10646-1" "ISO 
10646-1")
        ("ISO 8859-15" 
"-misc-profontwindows-medium-r-normal--0-*-*-*-m-*-iso8859-15" "ISO 
8859-15")
        ("fcd 8859-15" 
"-misc-profontwindows-medium-r-normal--0-*-*-*-m-*-fcd8859-15" "fcd 
8859-15")
        ("ISO 8859-9"  
"-misc-profontwindows-medium-r-normal--0-*-*-*-m-*-iso8859-9"  "ISO 
8859-9")
        ("ISO 8859-1"  
"-misc-profontwindows-medium-r-normal--0-*-*-*-m-*-iso8859-1"  "ISO 
8859-1")
        ("ASCII-0"     
"-misc-profontwindows-medium-r-normal--0-*-*-*-m-*-ascii-0"    
"ASCII-0")
       ("Courier @ 75 DPI"
;; For these, we specify the point height and the DPIs.
        ( "8" 	      
	"-adobe-courier-medium-r-normal--*-80-75-75-m-*-iso10646-1"   "8")
        ("10" 	      
	"-adobe-courier-medium-r-normal--*-100-75-75-m-*-iso10646-1" "10")
        ("12" 	      
	"-adobe-courier-medium-r-normal--*-120-75-75-m-*-iso10646-1" "12")
        ("14" 	      
	"-adobe-courier-medium-r-normal--*-140-75-75-m-*-iso10646-1" "14")
        ("18" 	      
	"-adobe-courier-medium-r-normal--*-180-75-75-m-*-iso10646-1" "18")
        ("24" 	      
	"-adobe-courier-medium-r-normal--*-240-75-75-m-*-iso10646-1" "24")
        ( "8 bold"       
"-adobe-courier-bold-r-normal--*-80-75-75-m-*-iso10646-1"   "8 bold")
        ("10 bold"       
"-adobe-courier-bold-r-normal--*-100-75-75-m-*-iso10646-1" "10 bold")
        ("12 bold"       
"-adobe-courier-bold-r-normal--*-120-75-75-m-*-iso10646-1" "12 bold")
        ("14 bold"       
"-adobe-courier-bold-r-normal--*-140-75-75-m-*-iso10646-1" "14 bold")
        ("18 bold"       
"-adobe-courier-bold-r-normal--*-180-75-75-m-*-iso10646-1" "18 bold")
        ("24 bold"       
"-adobe-courier-bold-r-normal--*-240-75-75-m-*-iso10646-1" "24 bold")
        ( "8 slant"      
"-adobe-courier-medium-o-normal--*-80-75-75-m-*-iso10646-1"   "8 
slant")
        ("10 slant"      
"-adobe-courier-medium-o-normal--*-100-75-75-m-*-iso10646-1" "10 
slant")
        ("12 slant"      
"-adobe-courier-medium-o-normal--*-120-75-75-m-*-iso10646-1" "12 
slant")
        ("14 slant"      
"-adobe-courier-medium-o-normal--*-140-75-75-m-*-iso10646-1" "14 
slant")
        ("18 slant"      
"-adobe-courier-medium-o-normal--*-180-75-75-m-*-iso10646-1" "18 
slant")
        ("24 slant"      
"-adobe-courier-medium-o-normal--*-240-75-75-m-*-iso10646-1" "24 
slant")
        ( "8 bold slant" 
"-adobe-courier-bold-o-normal--*-80-75-75-m-*-iso10646-1"   "8 bold 
slant")
        ("10 bold slant" 
"-adobe-courier-bold-o-normal--*-100-75-75-m-*-iso10646-1" "10 bold 
slant")
        ("12 bold slant" 
"-adobe-courier-bold-o-normal--*-120-75-75-m-*-iso10646-1" "12 bold 
slant")
        ("14 bold slant" 
"-adobe-courier-bold-o-normal--*-140-75-75-m-*-iso10646-1" "14 bold 
slant")
        ("18 bold slant" 
"-adobe-courier-bold-o-normal--*-180-75-75-m-*-iso10646-1" "18 bold 
slant")
        ("24 bold slant" 
"-adobe-courier-bold-o-normal--*-240-75-75-m-*-iso10646-1" "24 bold 
slant")
       )
       ("Courier @ 100 DPI"
;; For these, we specify the point height and the DPIs.
        ( "8" 	      
	"-adobe-courier-medium-r-normal--*-80-100-100-m-*-iso10646-1"   "8")
        ("10" 	      
	"-adobe-courier-medium-r-normal--*-100-100-100-m-*-iso10646-1" "10")
        ("12" 	      
	"-adobe-courier-medium-r-normal--*-120-100-100-m-*-iso10646-1" "12")
        ("14" 	      
	"-adobe-courier-medium-r-normal--*-140-100-100-m-*-iso10646-1" "14")
        ("18" 	      
	"-adobe-courier-medium-r-normal--*-180-100-100-m-*-iso10646-1" "18")
        ("24" 	      
	"-adobe-courier-medium-r-normal--*-240-100-100-m-*-iso10646-1" "24")
        ( "8 bold"       
"-adobe-courier-bold-r-normal--*-80-100-100-m-*-iso10646-1"   "8 bold")
        ("10 bold"       
"-adobe-courier-bold-r-normal--*-100-100-100-m-*-iso10646-1" "10 bold")
        ("12 bold"       
"-adobe-courier-bold-r-normal--*-120-100-100-m-*-iso10646-1" "12 bold")
        ("14 bold"       
"-adobe-courier-bold-r-normal--*-140-100-100-m-*-iso10646-1" "14 bold")
        ("18 bold"       
"-adobe-courier-bold-r-normal--*-180-100-100-m-*-iso10646-1" "18 bold")
        ("24 bold"       
"-adobe-courier-bold-r-normal--*-240-100-100-m-*-iso10646-1" "24 bold")
        ( "8 slant"      
"-adobe-courier-medium-o-normal--*-80-100-100-m-*-iso10646-1"   "8 
slant")
        ("10 slant"      
"-adobe-courier-medium-o-normal--*-100-100-100-m-*-iso10646-1" "10 
slant")
        ("12 slant"      
"-adobe-courier-medium-o-normal--*-120-100-100-m-*-iso10646-1" "12 
slant")
        ("14 slant"      
"-adobe-courier-medium-o-normal--*-140-100-100-m-*-iso10646-1" "14 
slant")
        ("18 slant"      
"-adobe-courier-medium-o-normal--*-180-100-100-m-*-iso10646-1" "18 
slant")
        ("24 slant"      
"-adobe-courier-medium-o-normal--*-240-100-100-m-*-iso10646-1" "24 
slant")
        ( "8 bold slant" 
"-adobe-courier-bold-o-normal--*-80-100-100-m-*-iso10646-1"   "8 bold 
slant")
        ("10 bold slant" 
"-adobe-courier-bold-o-normal--*-100-100-100-m-*-iso10646-1" "10 bold 
slant")
        ("12 bold slant" 
"-adobe-courier-bold-o-normal--*-120-100-100-m-*-iso10646-1" "12 bold 
slant")
        ("14 bold slant" 
"-adobe-courier-bold-o-normal--*-140-100-100-m-*-iso10646-1" "14 bold 
slant")
        ("18 bold slant" 
"-adobe-courier-bold-o-normal--*-180-100-100-m-*-iso10646-1" "18 bold 
slant")
        ("24 bold slant" 
"-adobe-courier-bold-o-normal--*-240-100-100-m-*-iso10646-1" "24 bold 
slant")
       )
.... many, many more ....
))
(provide 'site-fonts-x11)


(if (fboundp 'new-fontset)
   (progn
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;; Monotype Courier New - Unicode encoded TrueType font, version 
2.82, 1318 glyphs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
     (create-fontset-from-fontset-spec "-monotype-courier 
new-medium-r-*-*-9-*-*-*-*-*-fontset-09pt_monotype_courier" t 'noerror)
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-1  
'("courier new" . "iso8859-1"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-2  
'("courier new" . "iso8859-2"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-3  
'("courier new" . "iso8859-3"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-4  
'("courier new" . "iso8859-4"))
	(set-fontset-font "fontset-09pt_monotype_courier"    
'cyrillic-iso8859-5  '("courier new" . "iso8859-5"))
	(set-fontset-font "fontset-09pt_monotype_courier"      
'arabic-iso8859-6  '("courier new" . "iso8859-6"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'greek-iso8859-7  
'("courier new" . "iso8859-7"))
	(set-fontset-font "fontset-09pt_monotype_courier"      
'hebrew-iso8859-8  '("courier new" . "iso8859-8"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-9  
'("courier new" . "iso8859-9"))
	(set-fontset-font "fontset-09pt_monotype_courier"	'latin-iso8859-15 
'("courier new" . "iso8859-15"))
	(set-fontset-font "fontset-09pt_monotype_courier" 
'mule-unicode-0100-24ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-09pt_monotype_courier" 
'mule-unicode-2500-33ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-09pt_monotype_courier" 
'mule-unicode-e000-ffff '("courier new" . "iso10646-1"))
;
     (create-fontset-from-fontset-spec "-monotype-courier 
new-medium-r-*-*-10-*-*-*-*-*-fontset-10pt_monotype_courier" t 
'noerror)
	(set-fontset-font "fontset-10pt_monotype_courier"	'latin-iso8859-1  
'("courier new" . "iso8859-1"))
	(set-fontset-font "fontset-10pt_monotype_courier"	'latin-iso8859-2  
'("courier new" . "iso8859-2"))
	(set-fontset-font "fontset-10pt_monotype_courier"	'latin-iso8859-3  
'("courier new" . "iso8859-3"))
	(set-fontset-font "fontset-10pt_monotype_courier"	'latin-iso8859-4  
'("courier new" . "iso8859-4"))
	(set-fontset-font "fontset-10pt_monotype_courier"    
'cyrillic-iso8859-5  '("courier new" . "iso8859-5"))
	(set-fontset-font "fontset-10pt_monotype_courier"      
'arabic-iso8859-6  '("courier new" . "iso8859-6"))
	(set-fontset-font "fontset-10pt_monotype_courier"	'greek-iso8859-7  
'("courier new" . "iso8859-7"))
	(set-fontset-font "fontset-10pt_monotype_courier"      
'hebrew-iso8859-8  '("courier new" . "iso8859-8"))
	(set-fontset-font "fontset-10pt_monotype_courier"	'latin-iso8859-9  
'("courier new" . "iso8859-9"))
	(set-fontset-font "fontset-10pt_monotype_courier"	'latin-iso8859-15 
'("courier new" . "iso8859-15"))
	(set-fontset-font "fontset-10pt_monotype_courier" 
'mule-unicode-0100-24ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-10pt_monotype_courier" 
'mule-unicode-2500-33ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-10pt_monotype_courier" 
'mule-unicode-e000-ffff '("courier new" . "iso10646-1"))
;
     (create-fontset-from-fontset-spec "-monotype-courier 
new-medium-r-*-*-11-*-*-*-*-*-fontset-11pt_monotype_courier" t 
'noerror)
	(set-fontset-font "fontset-11pt_monotype_courier"	'latin-iso8859-1  
'("courier new" . "iso8859-1"))
	(set-fontset-font "fontset-11pt_monotype_courier"	'latin-iso8859-2  
'("courier new" . "iso8859-2"))
	(set-fontset-font "fontset-11pt_monotype_courier"	'latin-iso8859-3  
'("courier new" . "iso8859-3"))
	(set-fontset-font "fontset-11pt_monotype_courier"	'latin-iso8859-4  
'("courier new" . "iso8859-4"))
	(set-fontset-font "fontset-11pt_monotype_courier"    
'cyrillic-iso8859-5  '("courier new" . "iso8859-5"))
	(set-fontset-font "fontset-11pt_monotype_courier"      
'arabic-iso8859-6  '("courier new" . "iso8859-6"))
	(set-fontset-font "fontset-11pt_monotype_courier"	'greek-iso8859-7  
'("courier new" . "iso8859-7"))
	(set-fontset-font "fontset-11pt_monotype_courier"      
'hebrew-iso8859-8  '("courier new" . "iso8859-8"))
	(set-fontset-font "fontset-11pt_monotype_courier"	'latin-iso8859-9  
'("courier new" . "iso8859-9"))
	(set-fontset-font "fontset-11pt_monotype_courier"	'latin-iso8859-15 
'("courier new" . "iso8859-15"))
	(set-fontset-font "fontset-11pt_monotype_courier" 
'mule-unicode-0100-24ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-11pt_monotype_courier" 
'mule-unicode-2500-33ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-11pt_monotype_courier" 
'mule-unicode-e000-ffff '("courier new" . "iso10646-1"))
;
     (create-fontset-from-fontset-spec "-monotype-courier 
new-medium-r-*-*-12-*-*-*-*-*-fontset-12pt_monotype_courier" t 
'noerror)
	(set-fontset-font "fontset-12pt_monotype_courier"	'latin-iso8859-1  
'("courier new" . "iso8859-1"))
	(set-fontset-font "fontset-12pt_monotype_courier"	'latin-iso8859-2  
'("courier new" . "iso8859-2"))
	(set-fontset-font "fontset-12pt_monotype_courier"	'latin-iso8859-3  
'("courier new" . "iso8859-3"))
	(set-fontset-font "fontset-12pt_monotype_courier"	'latin-iso8859-4  
'("courier new" . "iso8859-4"))
	(set-fontset-font "fontset-12pt_monotype_courier"    
'cyrillic-iso8859-5  '("courier new" . "iso8859-5"))
	(set-fontset-font "fontset-12pt_monotype_courier"      
'arabic-iso8859-6  '("courier new" . "iso8859-6"))
	(set-fontset-font "fontset-12pt_monotype_courier"	'greek-iso8859-7  
'("courier new" . "iso8859-7"))
	(set-fontset-font "fontset-12pt_monotype_courier"      
'hebrew-iso8859-8  '("courier new" . "iso8859-8"))
	(set-fontset-font "fontset-12pt_monotype_courier"	'latin-iso8859-9  
'("courier new" . "iso8859-9"))
	(set-fontset-font "fontset-12pt_monotype_courier"	'latin-iso8859-15 
'("courier new" . "iso8859-15"))
	(set-fontset-font "fontset-12pt_monotype_courier" 
'mule-unicode-0100-24ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-12pt_monotype_courier" 
'mule-unicode-2500-33ff '("courier new" . "iso10646-1"))
	(set-fontset-font "fontset-12pt_monotype_courier" 
'mule-unicode-e000-ffff '("courier new" . "iso10646-1"))
.... many, many more ...
))
(provide 'site-fontsets-x11)

to be able to load them only in X11

> 2.  How can I make emacs come up in full screen mode each time it 
> starts?

xdpyinfo tells your screen's size. In .Xdefaults you can put:

Emacs*geometry:			1440x900

--
Greetings

   Pete

»¿ʇı̣ əsnqɐ ʇ,uɐɔ noʎ ɟı̣
ɓuı̣ɥʇʎuɐ sı̣ pooɓ ʇɐɥʍ«

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

* Re: Font and Window Size in emacs
       [not found] ` <mailman.2159.1122825781.20277.help-gnu-emacs@gnu.org>
@ 2005-08-01 15:54   ` Joe Hesse
  2005-08-01 18:00     ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: Joe Hesse @ 2005-08-01 15:54 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]


"Peter Dyballa" <Peter_Dyballa@Web.DE> wrote in message 
news:mailman.2159.1122825781.20277.help-gnu-emacs@gnu.org...

Am 31.07.2005 um 17:26 schrieb Joe Hesse:

> Hi,
> I am using emacs under Linux.  I have two questions.
>
> 1.  When I press the shift key and left mouse button I get a font 
> selection
> menu.  How can I make my choice of 14 pt Courier permanent without issuing
> the command each time?

Define some more fonts and fontsets à la:

(setq x-fixed-font-alist
    '("X11 Font Menu"
       ("Misc fixed"
;; For these, we specify the pixel height and width.
        ("«ProFont»" "»ProFont«")
        ("ISO 10646-1"
        ("24 bold slant"
"-adobe-courier-bold-o-normal--*-240-75-75-m-*-iso10646-1" "24 bold
slant")

> 2.  How can I make emacs come up in full screen mode each time it starts?

xdpyinfo tells your screen's size. In .Xdefaults you can put:

Emacs*geometry: 1440x900

--
Greetings

   Pete

Do I have to do all of the above just to get 14 pt font instead of the 
default 12 pt?
Also, I created a .Xdefaults file and put in:
Emacs*geometry 1280x1024
It didn't work for me.
Many thanks,
Joe

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

* Re: Font and Window Size in emacs
  2005-08-01 15:54   ` Joe Hesse
@ 2005-08-01 18:00     ` Peter Dyballa
  2005-08-02 17:14       ` Kevin Rodgers
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2005-08-01 18:00 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 01.08.2005 um 17:54 schrieb Joe Hesse:

> Do I have to do all of the above just to get 14 pt font instead of the
> default 12 pt?

No, of course not. But it's so rare that one size fits all wants ... 
and it's just some practise with replace-string or replace-regexp ...

> Also, I created a .Xdefaults file and put in:
> Emacs*geometry 1280x1024
> It didn't work for me.
>

The syntax says that between key and value there has to be a colon, 
and, to be exact, this colon has to touch the key. And then you need to 
feed the database with the new setting. So you either need to invoke 
xrdb or you need to log-off and log-in again ...

Spend some time with 'man X' and 'man xrdb', best in Emacs.

Could be that the most correct X ressource setting is:

Emacs*geometry: 1280x1024+0+0

--
Greetings

   Pete

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe trying
to produce bigger and better idiots. So far, the Universe is winning."
                                                           -- Rich Cook

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

* Re: Font and Window Size in emacs
  2005-08-01 18:00     ` Peter Dyballa
@ 2005-08-02 17:14       ` Kevin Rodgers
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2005-08-02 17:14 UTC (permalink / raw)


Peter Dyballa wrote:
 > Am 01.08.2005 um 17:54 schrieb Joe Hesse:
 >> Do I have to do all of the above just to get 14 pt font instead of the
 >> default 12 pt?
 >
 > No, of course not. But it's so rare that one size fits all wants ... and
 > it's just some practise with replace-string or replace-regexp ...

Since you've suggested an xrdb solution for the geometry, perhaps he'll
entertain an xrdb solution for the font as well.  Here's what I have in
~/.Xdefaults to get a 14 point Courier font by default:

Emacs*Font:	-*-courier-medium-r-*--*-140-*-*-*-*-iso8859-1

But iso10646-1 might be more useful than iso8859-1.

-- 
Kevin Rodgers

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

end of thread, other threads:[~2005-08-02 17:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-31 15:26 Font and Window Size in emacs Joe Hesse
2005-07-31 15:50 ` Peter Dyballa
     [not found] ` <mailman.2159.1122825781.20277.help-gnu-emacs@gnu.org>
2005-08-01 15:54   ` Joe Hesse
2005-08-01 18:00     ` Peter Dyballa
2005-08-02 17:14       ` Kevin Rodgers

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).