* How to assign a name to emacsclient's frame?
@ 2008-02-24 0:35 anhnmncb
2008-02-24 13:10 ` Andrea Vettorello
0 siblings, 1 reply; 2+ messages in thread
From: anhnmncb @ 2008-02-24 0:35 UTC (permalink / raw)
To: help-gnu-emacs
hi,
As the title, after create lots of emacsclient frame by emacsclient -c,
I couldn't distinct which one is the server one, I want to assign a
name to emacsclient like
emacsclient -name emacsc -c
so it will show at the title bar.
Also, I could make use of this title name for my fvwm to determine which desk it
would be there. So I could better manage emacsclient frame.
Any good advices?
--
Regards,
anhnmncb
gpg key: 44A31344
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How to assign a name to emacsclient's frame?
2008-02-24 0:35 How to assign a name to emacsclient's frame? anhnmncb
@ 2008-02-24 13:10 ` Andrea Vettorello
0 siblings, 0 replies; 2+ messages in thread
From: Andrea Vettorello @ 2008-02-24 13:10 UTC (permalink / raw)
To: help-gnu-emacs
On Sun, Feb 24, 2008 at 1:35 AM, anhnmncb <anhnmncb@gmail.com> wrote:
> hi,
> As the title, after create lots of emacsclient frame by emacsclient -c,
> I couldn't distinct which one is the server one, I want to assign a
> name to emacsclient like
> emacsclient -name emacsc -c
> so it will show at the title bar.
>
> Also, I could make use of this title name for my fvwm to determine which desk it
> would be there. So I could better manage emacsclient frame.
> Any good advices?
Maybe you can use a combination of "server-visit-hook" (description
says: Hook run when visiting a file for the Emacs server.) and frame
local variables. Something like:
(setq server-visit-hook 'my-server-visit-hook)
(make-variable-frame-local 'frame-title-format)
(defun my-server-visit-hook ()
(make-local-variable 'frame-title-format)
(setq frame-title-format "Emacsclient: %b")
)
The code above evaluated on the scratch buffer seems to work, but i
don't know if it breaks something else. ^__^
--
Andrea
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-24 13:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-24 0:35 How to assign a name to emacsclient's frame? anhnmncb
2008-02-24 13:10 ` Andrea Vettorello
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).