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

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

Re: How to get full path of currently opened file?


From: Sylvain Rousseau
Subject: Re: How to get full path of currently opened file?
Date: Wed, 28 Mar 2012 23:44:42 +0200

Try

(setq frame-title-format
      '(:eval
        (concat "Emacs: "
                (or
                 buffer-file-name
                 (and (eq major-mode 'dired-mode)
                      (expand-file-name
                       (if (listp dired-directory)
                           (car dired-directory)
                         dired-directory)))
                 (buffer-name)))))

 to see the path in the frame title.


Sylvain.

reply via email to

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