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

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

To get the file name:

M-: buffer-file-name

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *