all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* startup resize
@ 2004-01-13 15:17 Giannandrea Castaldi
  0 siblings, 0 replies; 5+ messages in thread
From: Giannandrea Castaldi @ 2004-01-13 15:17 UTC (permalink / raw)


I've changed my font in .emacs and now when emacs starts it:
1. start with default font
2. maximize the frame
3. change the font (for my settings in .emacs)
How can I remove the step 2 (maximize the frame) or postpone it after my 
font setting?

Thanks for any help.

Giannandrea

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

* Re: startup resize
       [not found] <mailman.540.1074012057.928.help-gnu-emacs@gnu.org>
@ 2004-01-14 11:36 ` leo
  2004-01-14 12:11   ` Giannandrea Castaldi
  0 siblings, 1 reply; 5+ messages in thread
From: leo @ 2004-01-14 11:36 UTC (permalink / raw)


Giannandrea Castaldi <g.castal@tiscali.it> writes:

> I've changed my font in .emacs and now when emacs starts it:
> 1. start with default font
> 2. maximize the frame
> 3. change the font (for my settings in .emacs)
> How can I remove the step 2 (maximize the frame) or postpone it after
> my font setting?

what do you want to achive? that emacs has the correct font straight
away?

well under X11 you can use the x-resource to set the font correct right
from the start. but don't forget the lisp var settings: i think, emacs
needs them as well. 

i guess the emacs faq has something exactly about your problem.

hope that helps

leo

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

* Re: startup resize
       [not found] <72A87F7160C0994D8C5A36E2FDC227F50896C92C@txnexc01.americas.cpqcorp.net>
@ 2004-01-14 11:58 ` Giannandrea Castaldi
  0 siblings, 0 replies; 5+ messages in thread
From: Giannandrea Castaldi @ 2004-01-14 11:58 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 965 bytes --]

Bingham, Jay wrote:

>On Tuesday, January 13, 2004 at 9:18 AM Giannandrea Castaldi queried:
>
>  
>
>>I've changed my font in .emacs and now when emacs starts it:
>>1. start with default font
>>2. maximize the frame
>>3. change the font (for my settings in .emacs)
>>How can I remove the step 2 (maximize the frame) or postpone it after
>>    
>>
>my 
>  
>
>>font setting?
>>    
>>
>
>You did not say what environment you are running in, in my experience
>that makes a difference in whether it is possible or not.
>  
>
I'm using emacs 21.3 in linux gentoo. I suppose that the cause is in a 
file in
/usr/share/emacs/21.3/lisp that is loaded before my .emacs but I don't 
know which is it.

>-_
>J_)
>C_)ingham
>.    HP - NonStop Austin Software & Services - Software Quality
>Assurance
>.    Austin, TX
>. "Language is the apparel in which your thoughts parade in public.
>.  Never clothe them in vulgar and shoddy attire."     -Dr. George W.
>Crane-
>
>
>  
>


[-- Attachment #1.2: Type: text/html, Size: 1643 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

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

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

* Re: startup resize
  2004-01-14 11:36 ` startup resize leo
@ 2004-01-14 12:11   ` Giannandrea Castaldi
  2004-01-14 13:39     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Giannandrea Castaldi @ 2004-01-14 12:11 UTC (permalink / raw)


leo wrote:
> Giannandrea Castaldi <g.castal@tiscali.it> writes:
> 
> 
>>I've changed my font in .emacs and now when emacs starts it:
>>1. start with default font
>>2. maximize the frame
>>3. change the font (for my settings in .emacs)
>>How can I remove the step 2 (maximize the frame) or postpone it after
>>my font setting?
> 
> 
> what do you want to achive? that emacs has the correct font straight
> away?
Yes, I would like to eliminate the initial refresh and to have the frame 
  maximized. I think that there is a file under the emacs installation 
where are configured (I suppose /usr/share/emacs/21.3/lisp)
> 
> well under X11 you can use the x-resource to set the font correct right
> from the start. but don't forget the lisp var settings: i think, emacs
> needs them as well. 
> 
> i guess the emacs faq has something exactly about your problem.
> 
> hope that helps
> 
> leo

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

* Re: startup resize
  2004-01-14 12:11   ` Giannandrea Castaldi
@ 2004-01-14 13:39     ` Eli Zaretskii
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2004-01-14 13:39 UTC (permalink / raw)


> From: Giannandrea Castaldi <g.castal@tiscali.it>
> Date: Wed, 14 Jan 2004 13:11:28 +0100
> 
> leo wrote:
> > Giannandrea Castaldi <g.castal@tiscali.it> writes:
> > 
> > 
> >>I've changed my font in .emacs and now when emacs starts it:
> >>1. start with default font
> >>2. maximize the frame
> >>3. change the font (for my settings in .emacs)
> >>How can I remove the step 2 (maximize the frame) or postpone it after
> >>my font setting?
> > 
> > 
> > what do you want to achive? that emacs has the correct font straight
> > away?
> Yes, I would like to eliminate the initial refresh and to have the frame 
>   maximized.

The Emacs startup code defines a few hook variables designed for such
situations: if these variables are non-nil, Emacs calls the functions
they list at certain strategic points of its startup procedure.
Search startup.el for "-hook" to see the whole story.

In this case, `after-init-hook' seems to be what you want: write a
short function that maximizes the frame, and set `after-init-hook' to
that function.  See the doc string of `after-init-hook' for more
details.

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

end of thread, other threads:[~2004-01-14 13:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.540.1074012057.928.help-gnu-emacs@gnu.org>
2004-01-14 11:36 ` startup resize leo
2004-01-14 12:11   ` Giannandrea Castaldi
2004-01-14 13:39     ` Eli Zaretskii
     [not found] <72A87F7160C0994D8C5A36E2FDC227F50896C92C@txnexc01.americas.cpqcorp.net>
2004-01-14 11:58 ` Giannandrea Castaldi
2004-01-13 15:17 Giannandrea Castaldi

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.