When editing a a files in a deeply nested folder structure,

how can I quickly copy/yank the full name of the file (including folder path(s) )

  • 3
    You can try to bind a key to (kill-new buffer-file-name) Mar 22, 2018 at 16:48
  • @HåkonHægland: Please consider posting that as an answer. Thx.
    – Drew
    Mar 22, 2018 at 23:40

1 Answer 1


For Helm users, use C-x C-f (helm-find-files) then C-u C-c C-k (helm-kill-selection-and-quit).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.