tags:

views:

136

answers:

3

When working on a buffer (that maps to a certain file) , how to get info about it? Like Path on disk, size, ...

+4  A: 

M-x dired RET

Peter Miehle
C-x D (RET) as standard keybinding apparently, tx
Peter
+3  A: 

Additionally, there's dired-x which has dired-jump - this allows you to go straight to the file you're visiting. dired-x.el appears to be shipped with my emacs-22.1, so it should suffice to say

(require 'dired-x)

in your ~/.emacs. That installs the binding C-x C-j for dired-jump.

Edric
+2  A: 

If you just want the path and don't want to open dired mode, following will display the full path in the mini buffer and copy it to clipboard. I find it very useful. Put this in your .emacs

(global-set-key (kbd "<f8>") 'copy-buffer-file-name)
Amol Gawai