How can i copy the absolute path of the current open buffer to the system clipboard (i.e. ctrl + shift + v) and not (ctrl + y)

There are many solutions available for such copy, 1 and 2 but all of them doesn't work outside the emacs application.

  • I see, Jordan has already answered a similar issue here - emacs.stackexchange.com/questions/13194/…. It works with emacs gui but not with emacs in terminal...
    – Saravana
    Jul 31, 2015 at 13:58
  • 1
    kill-new works fine for me for copying stuff to system clipboard with x-select-enable-clipboard and x-select-enable-primary set to t on RHEL 5.10. What is your OS? Also can you update your question as this is not specific to copying buffer file names? Jul 31, 2015 at 14:51
  • package-install xclip and (xclip-mode 1) made it.. you guys are making my life beautiful.... on ubuntu 14.04
    – Saravana
    Jul 31, 2015 at 14:54
  • Actually this is the possible duplicate then: emacs.stackexchange.com/q/11018/115 Jul 31, 2015 at 14:57


Browse other questions tagged or ask your own question.