How to print the name of the current file being edited in Emacs?

In Emacs, how to print the name of the current file that I am editing?

asked May 12, 2014 by Eric Z Ma (44,280 points)

1 Answer

 
Best answer

The built-in function buffer-file-name gives the full path of your file.

To get the file name:

M-: buffer-file-name
answered May 12, 2014 by Eric Z Ma (44,280 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...