* starting emacs with -fn 10x20 from .emacs
@ 2007-06-11 21:26 Ryan Moszynski
2007-06-11 22:26 ` Peter Dyballa
0 siblings, 1 reply; 10+ messages in thread
From: Ryan Moszynski @ 2007-06-11 21:26 UTC (permalink / raw)
To: help-gnu-emacs
here's how i launch emacs through the kde menu:
/usr/local/bin/emacs-22.0.92 -font 10x20
however, if i start the emacs session from a terminal or as root, i have to
either type the "-font 10x20" every time, or change the font after i start
emacs through shift/left-click. I have been looking but i cannot find how to
do this through my .emacs file.
any suggestions?
thanks,
ryan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: starting emacs with -fn 10x20 from .emacs
2007-06-11 21:26 Ryan Moszynski
@ 2007-06-11 22:26 ` Peter Dyballa
2007-06-13 17:02 ` Ryan Moszynski
0 siblings, 1 reply; 10+ messages in thread
From: Peter Dyballa @ 2007-06-11 22:26 UTC (permalink / raw)
To: ryan.moszynski; +Cc: help-gnu-emacs
Am 11.06.2007 um 23:26 schrieb Ryan Moszynski:
> however, if i start the emacs session from a terminal or as root, i
> have to
> either type the "-font 10x20" every time, or change the font after
> i start
> emacs through shift/left-click. I have been looking but i cannot
> find how to
> do this through my .emacs file.
>
(setq default-frame-alist '(
(border-color . "#4e3831")
(foreground-color . "grey10")
(background-color . "ghost white")
(vertical-scroll-bars . left)
(cursor-color . "purple")
(cursor-type . box)
(font . 10x20)
(active-alpha . 0.75)
(inactive-alpha . 0.875)
(top . 50) (left . 150) (width . 89) (height . 56)))
There is also initial-frame-alist ...
--
Greetings
Pete
IMBECILITY, n. A kind of divine inspiration, or sacred fire
affecting censorious critics of this dictionary.
-- Ambrose Bierce: _The Devil's Dictionary_
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: starting emacs with -fn 10x20 from .emacs
[not found] <mailman.1964.1181597049.32220.help-gnu-emacs@gnu.org>
@ 2007-06-12 18:17 ` s. keeling
2007-06-13 11:02 ` Raimund Kohl-Fuechsle
[not found] ` <mailman.2095.1181732975.32220.help-gnu-emacs@gnu.org>
2007-06-12 19:54 ` Stefan Monnier
1 sibling, 2 replies; 10+ messages in thread
From: s. keeling @ 2007-06-12 18:17 UTC (permalink / raw)
To: help-gnu-emacs
Ryan Moszynski <ryan.m.lists@gmail.com>:
>
> here's how i launch emacs through the kde menu:
>
> /usr/local/bin/emacs-22.0.92 -font 10x20
>
> however, if i start the emacs session from a terminal or as root, i have to
> either type the "-font 10x20" every time, or change the font after i start
> emacs through shift/left-click. I have been looking but i cannot find how to
> do this through my .emacs file.
That's X's job. Put it into ~/.Xresources:
Emacs*font: fixed
Emacs*foreground: wheat
Emacs*background: black
Emacs*cursorColor: green
Emacs.geometry: 105x48-58+28
Emacs.dialog*.background: LightSteelBlue1
Emacs.dialog*.foreground: DarkRed
Then run "xrdb -merge ~/.Xresources".
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: starting emacs with -fn 10x20 from .emacs
[not found] <mailman.1964.1181597049.32220.help-gnu-emacs@gnu.org>
2007-06-12 18:17 ` starting emacs with -fn 10x20 from .emacs s. keeling
@ 2007-06-12 19:54 ` Stefan Monnier
1 sibling, 0 replies; 10+ messages in thread
From: Stefan Monnier @ 2007-06-12 19:54 UTC (permalink / raw)
To: help-gnu-emacs
> however, if i start the emacs session from a terminal or as root, i have to
> either type the "-font 10x20" every time, or change the font after i start
> emacs through shift/left-click. I have been looking but i cannot find how to
> do this through my .emacs file.
M-x customize-face RET default RET
Stefan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: starting emacs with -fn 10x20 from .emacs
2007-06-12 18:17 ` starting emacs with -fn 10x20 from .emacs s. keeling
@ 2007-06-13 11:02 ` Raimund Kohl-Fuechsle
[not found] ` <mailman.2095.1181732975.32220.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 10+ messages in thread
From: Raimund Kohl-Fuechsle @ 2007-06-13 11:02 UTC (permalink / raw)
Cc: help-gnu-emacs
s. keeling wrote:
> Ryan Moszynski <ryan.m.lists@gmail.com>:
>
>> here's how i launch emacs through the kde menu:
>>
>> /usr/local/bin/emacs-22.0.92 -font 10x20
>>
>> however, if i start the emacs session from a terminal or as root, i have to
>> either type the "-font 10x20" every time, or change the font after i start
>> emacs through shift/left-click. I have been looking but i cannot find how to
>> do this through my .emacs file.
>>
>
> That's X's job. Put it into ~/.Xresources:
>
sure? AFAIK neither GDM nor KDM do read the XResources ...
ray
^ permalink raw reply [flat|nested] 10+ messages in thread
* [OT] Re: starting emacs with -fn 10x20 from .emacs
[not found] ` <mailman.2095.1181732975.32220.help-gnu-emacs@gnu.org>
@ 2007-06-13 16:09 ` s. keeling
2007-06-14 6:59 ` Cecil Westerhof
1 sibling, 0 replies; 10+ messages in thread
From: s. keeling @ 2007-06-13 16:09 UTC (permalink / raw)
To: help-gnu-emacs
Raimund Kohl-Fuechsle <Raimund.Kohl@nabuli.de>:
> s. keeling wrote:
> > Ryan Moszynski <ryan.m.lists@gmail.com>:
> >
> >> here's how i launch emacs through the kde menu:
> >>
> >> /usr/local/bin/emacs-22.0.92 -font 10x20
> >>
> >> however, if i start the emacs session from a terminal or as root, i have to
> >> either type the "-font 10x20" every time, or change the font after i start
> >
> > That's X's job. Put it into ~/.Xresources:
>
> sure? AFAIK neither GDM nor KDM do read the XResources ...
That's insane (if true). Do you have a ~/.xinitrc or ~/.xsession?
Add "xrdb -merge ~/.Xresources" to it. *DM do source one or the other
(or either) of those files.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: starting emacs with -fn 10x20 from .emacs
2007-06-11 22:26 ` Peter Dyballa
@ 2007-06-13 17:02 ` Ryan Moszynski
2007-06-13 18:40 ` Peter Dyballa
0 siblings, 1 reply; 10+ messages in thread
From: Ryan Moszynski @ 2007-06-13 17:02 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs
this method works to set the font on startup. However, i use color-theme
in .emacs to load my colors:
(require 'color-theme)
(color-theme-initialize)
(color-theme-aalto-light)
and when using:
(setq default-frame-alist '(
(font . "10x20")
))
the color theme loads fine for the initial window, but then when i make a new
emacs window with 'C-x 5 2' my color them doesn't load at least the
background color properly.
is there a way around this?
thanks,
ryan
to set the font size . .emacs
On Monday 11 June 2007 6:26 pm, Peter Dyballa wrote:
> Am 11.06.2007 um 23:26 schrieb Ryan Moszynski:
> > however, if i start the emacs session from a terminal or as root, i
> > have to
> > either type the "-font 10x20" every time, or change the font after
> > i start
> > emacs through shift/left-click. I have been looking but i cannot
> > find how to
> > do this through my .emacs file.
>
> (setq default-frame-alist '(
> (border-color . "#4e3831")
> (foreground-color . "grey10")
> (background-color . "ghost white")
> (vertical-scroll-bars . left)
> (cursor-color . "purple")
> (cursor-type . box)
> (font . 10x20)
> (active-alpha . 0.75)
> (inactive-alpha . 0.875)
> (top . 50) (left . 150) (width . 89) (height . 56)))
>
> There is also initial-frame-alist ...
>
> --
> Greetings
>
> Pete
>
> IMBECILITY, n. A kind of divine inspiration, or sacred fire
> affecting censorious critics of this dictionary.
> -- Ambrose Bierce: _The Devil's Dictionary_
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: starting emacs with -fn 10x20 from .emacs
2007-06-13 17:02 ` Ryan Moszynski
@ 2007-06-13 18:40 ` Peter Dyballa
0 siblings, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2007-06-13 18:40 UTC (permalink / raw)
To: ryan.moszynski; +Cc: help-gnu-emacs
Am 13.06.2007 um 19:02 schrieb Ryan Moszynski:
> is there a way around this?
Forget colour-theme?
--
Greetings
Pete
There's no sense in being precise when you don't even know what
you're talking about.
-- John von Neumann
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: starting emacs with -fn 10x20 from .emacs
[not found] ` <mailman.2095.1181732975.32220.help-gnu-emacs@gnu.org>
2007-06-13 16:09 ` [OT] " s. keeling
@ 2007-06-14 6:59 ` Cecil Westerhof
2007-06-14 16:01 ` s. keeling
1 sibling, 1 reply; 10+ messages in thread
From: Cecil Westerhof @ 2007-06-14 6:59 UTC (permalink / raw)
To: help-gnu-emacs
Raimund Kohl-Fuechsle wrote:
>> That's X's job. Put it into ~/.Xresources:
>>
> sure? AFAIK neither GDM nor KDM do read the XResources ...
That is true, but it reads ~/.Xdefault. I use:
################################################################################
emacs.geometry: 250x150+0+0
emacs.background: black
emacs.foreground: white
emacs.font: *-courier-medium-r-*-*-*-180-*-*-*-*-*-*
emacs.toolBar: off
################################################################################
And it works like a charm.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: starting emacs with -fn 10x20 from .emacs
2007-06-14 6:59 ` Cecil Westerhof
@ 2007-06-14 16:01 ` s. keeling
0 siblings, 0 replies; 10+ messages in thread
From: s. keeling @ 2007-06-14 16:01 UTC (permalink / raw)
To: help-gnu-emacs
Cecil Westerhof <dummy@dummy.nl>:
> Raimund Kohl-Fuechsle wrote:
> >>[me]:
> >> That's X's job. Put it into ~/.Xresources:
> >>
> > sure? AFAIK neither GDM nor KDM do read the XResources ...
>
> That is true, but it reads ~/.Xdefault. I use:
s/Xdefault/Xdefaults/ :-)
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-06-14 16:01 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1964.1181597049.32220.help-gnu-emacs@gnu.org>
2007-06-12 18:17 ` starting emacs with -fn 10x20 from .emacs s. keeling
2007-06-13 11:02 ` Raimund Kohl-Fuechsle
[not found] ` <mailman.2095.1181732975.32220.help-gnu-emacs@gnu.org>
2007-06-13 16:09 ` [OT] " s. keeling
2007-06-14 6:59 ` Cecil Westerhof
2007-06-14 16:01 ` s. keeling
2007-06-12 19:54 ` Stefan Monnier
2007-06-11 21:26 Ryan Moszynski
2007-06-11 22:26 ` Peter Dyballa
2007-06-13 17:02 ` Ryan Moszynski
2007-06-13 18:40 ` Peter Dyballa
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).