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

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

RE: [h-e-w] full pathname in title bar


From: Underwood, Jonathan
Subject: RE: [h-e-w] full pathname in title bar
Date: Wed, 30 Jan 2002 01:35:03 -0500

This is what i have in my .emacs which does i think what you want.

;; Set the frame's title. %b is the name of the buffer. %+ indicates the state
;; of the buffer: * if modified, % if read only, or - otherwise. Two of them to
;; emulate the mode line. %f for the file name.
(setq frame-title-format "Emacs: %b %+%+ %f")

> -----Original Message-----
> From: Ben Key [mailto:address@hidden]
> Sent: January 30, 2002 12:24 AM
> To: address@hidden
> Cc: address@hidden
> Subject: RE: [h-e-w] full pathname in title bar
>
>
> I spent some time today researching this very topic.  I think
> you might find
> the solution I came up with to be pretty elegant and useful.
>
>   ;; Set up title bar so that it has the following format
>   ;; {BufferIdentifier} - address@hidden
>   ;; where
>   ;; {BufferIdentifier} is
>   ;; a) the name of the open file if the buffer is associated
> with a file
>   ;; b) The current directory if in dired mode
>   ;; c) The buffer name otherwise
>   ;; {ProgramName} and {ComputerName} are self explanatory
> (setq frame-title-format
>   '((buffer-file-name "%f" (dired-directory dired-directory
> "%b")) " - "
> invocation-name "@" system-name))
>
> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden]On Behalf Of Sivaram
> Neelakantan
> Sent: Sunday, January 27, 2002 10:08 AM
> To: address@hidden
> Subject: [h-e-w] full pathname in title bar
>
>
> hello,
> Is it possible to get the full path to the file name in the Title bar?
> Currently it just shows the file name. This is on Ntemacs21.
>
> regards,
> Sivaram
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.317 / Virus Database: 176 - Release Date: 01/21/2002
>
>


reply via email to

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