[sorry for top posting, but I follow the thread ]

You can add this little snippet to your .emacs:

(defun set-title-to-buffer-name ()
      (modify-frame-parameters (selected-frame)
                   (list (cons 'name (buffer-name)))))

(add-hook 'find-file-hook 'set-title-to-buffer-name)


This works in FSF emacs, I'm quiet sure it will work in xemacs.
What it does: whenever you open (find-file) a new file,
it will change the title of the working frame.

Ehud.


On Wed, 7 Feb 2007 16:18:55  wrote:
>
> Thanks Jason for the quick reply!
>
> I checked it now on my local machine it works perfectly!
> But I use xemacs on a remote machine, and I've already tried this with
> no success. Running xemacs with -user-init-file and such things doesn't
> work either.
> But, running it with the -no-init-file fix up the problem! However, all
> the other options I need are not available.
> I tried a brand new config file containing only the line you suggested,
> but with no success.
> Can there be a global config file that overrides mine?
>
> Any ideas?
>
> Thanks,
>
> Yoni
>
>
> -----Original Message-----
> From: Jason Friedman [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 07, 2007 3:46 PM
> To: Couriel, Yoni; [email protected]
> Subject: Re: set xemacs window title
>
> >    We would very much like to see only the filename in the taskbar,
> and if
> >    possible, to keep the full path name in the title of the window.
> >
>
> In your configuration file, put the following line:
>
> (setq frame-title-format "%S:%b")
>
> or
>
> (setq frame-title-format "%b")
>
> if you just want the filename and not "emacs" before it.
>
> What you have now I think is this:
>
> (setq frame-title-format "%f")
>
> while shows the full path.
>
> Jason (another xemacs fan)
>
> --
> Jason Friedman
> Ph.D. Student
> Department of Computer Science and Applied Mathematics
> Weizmann Institute of Science, Rehovot, Israel.
> Home page: http://www.wisdom.weizmann.ac.il/~jason


--
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 GnuPG: 98EA398D <http://www.keyserver.net/>    Better Safe Than Sorry

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to