I need to get the full path of the file that I\'m editing with emacs.
No need for extra function, just
M-! pwd