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

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

Re: Overriding switch to *scratch* buffer after creating new frame with


From: Константин Куликов
Subject: Re: Overriding switch to *scratch* buffer after creating new frame with 'emacsclient -c'
Date: Thu, 20 Dec 2012 03:43:12 +0300

Heh, found, that it I can set `initial-buffer-choice' to some file-name and it will be opened instead of switching to *scratch*.
But can't specify buffer without underlying file though.


2012/12/19 Константин Куликов <zxnotdead@gmail.com>
If you run command emacsclient -c the new frame will be created and then selected window(that have cursor and input focus) of this frame is switched to display *scratch* buffer.
I added hook to `after-make-frame-functions', that already perform switching to another buffer that I need, but it's then switched to *scratch*.
Can I somehow override this behaviour, by disabling switching to *scratch* buffer in new frame, that was created by 'emacsclient -c' ?



reply via email to

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