[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Font and Window Size in emacs
From: |
Peter Dyballa |
Subject: |
Re: Font and Window Size in emacs |
Date: |
Sun, 31 Jul 2005 17:50:37 +0200 |
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ɓ ʇɐɥʍ«