help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: initial frame


From: Le Wang
Subject: Re: initial frame
Date: Sat, 31 Aug 2002 13:57:48 GMT
User-agent: KNode/0.7.1

tcp wrote:

> Hi,
> 
>   I always open file in a separate frame. The first file I opened always
> popup two frames.
>   One with my file in it and the other is just the *scratch*  buffer frame.
> 
>   Is there a way to avoid the *scratch buffer frame from popping up?
>   My next question is what is the option at the "gnuclient" to open a file
> and move
>   the cursor to the end of the buffer?

This is pretty useless behaviour, don't you think?  There are packages out 
there (session comes to mind) that will save your positions in files you 
visit and restore the point on the next open.

In any case, add this to your .emacs to solve both your problems:

(setq gnuserv-frame t)
(add-hook 'gnuserv-visit-hook '(lambda ()
                                 (setq gnuserv-frame nil)
                                 (end-of-buffer)))


HTH.

--
Le



reply via email to

[Prev in Thread] Current Thread [Next in Thread]