What is the most simple way to send current full file name with file path to clipboard?
What I am using now is messages buffer: I copy file name that appears there after
If you want to write the name/path of the current buffer you can type C-u M-:
and then either (buffer-file-name)
- for the full path - or (buffer-name)
for the buffer name.
That is:
M-: + ellisp expression
evaluates an ellisp expression in the mini-buffer
C-u
write the output to the current buffer
Does not exactly answer to the question but could be useful if someone use this or other function sporadically, and prefers to not initialize the function at every startup.