If I drag a pdf into an emacs org file, it opens the pdf in a buffer with DocView (1). Whgat I would like instead, is the the file path, which is the default behavior into a terminal. For now I do M-x find-file and get the file path from there. Is there are better way?

(1) I've given up on making pdf-tools the default, I just have to stick with M-x pdf-tools-install each time I start a new session.

  • 1
    If instead of dragging, you right-click on the PDF file and Copy from the context menu, can you then paste the result into Emacs? I get the file path this way. The copy operation puts the result into the clipboard in my case, so I yank with M-x clipboard-yank.
    – NickD
    Mar 15 at 4:31


Your Answer

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

Browse other questions tagged or ask your own question.