all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sylvain Rousseau <thisirs@gmail.com>
To: jikk <aixer77@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get full path of currently opened file?
Date: Wed, 28 Mar 2012 23:44:42 +0200	[thread overview]
Message-ID: <CAJ8n831Jr5VUhKmwGcJsJpJba4nWSnN=O9Z53vM7H6kubohiog@mail.gmail.com> (raw)
In-Reply-To: <d642ce90-bacd-4e8d-8101-7faf14921243@m38g2000vbn.googlegroups.com>

[-- Attachment #1: Type: text/plain, Size: 442 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 517 bytes --]

      parent reply	other threads:[~2012-03-28 21:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d642ce90-bacd-4e8d-8101-7faf14921243@m38g2000vbn.googlegroups.com>
2011-09-19 21:16 ` How to get full path of currently opened file? Alan Mackenzie
2012-03-28 21:44 ` Sylvain Rousseau [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJ8n831Jr5VUhKmwGcJsJpJba4nWSnN=O9Z53vM7H6kubohiog@mail.gmail.com' \
    --to=thisirs@gmail.com \
    --cc=aixer77@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.