when I use pdf-tools

the text in it can't be copy/paste as normal

I want to treat this pdf mode as a place where I get the information to use in emacs

  • 1
    When I mark a region using the mouse and then press M-w the marked region is in the kill-ring, i.e. I can paste it using C-y. Doesn't it work for you? – andrej May 14 '17 at 4:52
  • the M-w and C-y can't be used between pdf-tools and emacs, so I give this issue – ccd May 15 '17 at 8:41
  • 1
    M-w and C-y do work in my case out of the box thanks to remapping in pdf-view.el which is part of pdf-tools. Search for pdf-view-kill-ring-save in that file and you will find the function itself and two key-remappings. – andrej May 16 '17 at 9:17

You should be able to use pdf-view-kill-ring-save to send highlighted text to the kill-ring. At that point you can yank it to a buffer as normal.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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