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
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityYou 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.
M-w
the marked region is in the kill-ring, i.e. I can paste it usingC-y
. Doesn't it work for you?M-w
andC-y
can't be used between pdf-tools and emacs, so I give this issueM-w
andC-y
do work in my case out of the box thanks to remapping inpdf-view.el
which is part ofpdf-tools
. Search forpdf-view-kill-ring-save
in that file and you will find the function itself and two key-remappings.