Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File preview: How do I set C-c v to open my exported pdf with pdf-view mode in emacs #136

Closed
drjswalker opened this issue Jul 21, 2023 · 6 comments

Comments

@drjswalker
Copy link

Hi

I'd like to be able to open the preview of my script in pdf-view mode in emacs (the fountain file is exported to a pdf by afterwriting via the export command) using the built in shortcuts . I can open the pdf file in emacs using C-x f (i have pdf-tools installed) but I have to type the file name. When I try to use C-c v I get the error: "dired-guess-shell-alist-user not configured correctly". My guess is that it defaults to shell commands to open the various file types it can export. How do I get it to use pdf-view mode for pdfs but retain the ability to use shell commands for the other file types?

@rnkn
Copy link
Owner

rnkn commented Jul 24, 2023

That command is only going to call shell commands. If you want C-c v to call a pdf-tools command you will need to rebind it.

@rnkn
Copy link
Owner

rnkn commented Jul 24, 2023

Several people have been confused by this command. It probably needs a rethink. Perhaps calling an export command should store the export filename in a local variable then attempt to open that file.

@rnkn
Copy link
Owner

rnkn commented Aug 3, 2023

You may have a better experience trying out the new (in 29.x) find-sibling-file command.

@rnkn
Copy link
Owner

rnkn commented Oct 22, 2023

The latest version will now export to PostScript/PDF and visit that exported file in a buffer.

@rnkn rnkn closed this as completed Oct 22, 2023
@drjswalker
Copy link
Author

drjswalker commented Oct 22, 2023 via email

@rnkn
Copy link
Owner

rnkn commented Oct 22, 2023

That's awful. I'm sorry to hear that.

Please test out the latest version and let me know how it works for you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants