3

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

3
  • 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, 2017 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, 2017 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, 2017 at 9:17

1 Answer 1

3

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.

Your Answer

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

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