File path to clipboard in Emacs

前端 未结 7 942
闹比i
闹比i 2021-01-31 02:40

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

相关标签:
7条回答
  • 2021-01-31 03:21

    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.

    0 讨论(0)
提交回复
热议问题