The C-c C-v command in emacs. Sometimes it asks what viewer to use, and sometimes it just shows the document. If possible (within reasonable effort), I'd like it to never ask, just show.
Also, where is the default view tool command defined? I'd like to know how to set it, as I'd like to append options, so it (for example) will look like this evince --fullscreen (or just -f) instead of just evince.
The mode that I use is LaTeX/P.
(In response to a comment)
/etc/gnome/defaults.list:
application/pdf=evince.desktop
application/x-bzpdf=evince.desktop
application/x-gzpdf=evince.desktop
application/postscript=evince.desktop
application/x-bzpostscript=evince.desktop
application/x-gzpostscript=evince.desktop
image/x-eps=evince.desktop
image/x-bzeps=evince.desktop
image/x-gzeps=evince.desktop
application/x-dvi=evince.desktop
application/x-bzdvi=evince.desktop
application/x-gzdvi=evince.desktop
image/vnd.djvu=evince.desktop
image/tiff=evince.desktop
application/x-cbr=evince.desktop
application/x-cbz=evince.desktop
application/x-cb7=evince.desktop
xdg-open, which you can set with the commandxdg-mime. As far as I remember, it is reading from adefaults.listfile; you may have one in something like~/.local/share/applicationsor/etc/gnome/defaults.list. ... And, for what it's worth,C-c C-vnever asks me about the viewer; have you changed your default view settings? – jon Jun 03 '12 at 23:12/etc/gnome/, I found the file you mentioned (see post edit). There were someevincerelated stuff there, but nothing to do (?). Isn't this something you fix withinemacs, or put in your.emacsfile? (I have not configuredC-c C-v.) – Emanuel Berg Jun 03 '12 at 23:36defaults.listsuggests thatemacsshouldn't bother asking about which viewer to use..? Can you describe more explicitly when it does or doesn't ask? As for the--fullscreenoption, I've never worried about that before. (I'll take a look, but others might be much quicker.) – jon Jun 04 '12 at 00:51M-x customize-variable RET TeX-view-program-selection. – jon Jun 04 '12 at 01:02TeX-output-view-style, but I can't get it to accept the-foption for some reason. – jon Jun 04 '12 at 01:24Line 1: '(TeX-output-view-style (quote (("^dvi$" "." "evince %o") ("^ps$" "." "evince %o") ("^pdf$" "." "mupdf %o") ("^html?$" "." "firefox %o")))) Line 2: '(TeX-view-program-selection (quote (((output-dvi style-pstricks) "Evince") (output-dvi "Evince") (output-pdf "xdg-open") (output-html "xdg-open"))))
– Thérèse Jun 04 '12 at 01:49customize-variable. But what is your default viewer? (Try opening a .pdf withxdg-opento test.) Incidentally, I too likemupdffor regular viewing; you may also find zathura to your liking. It has better support for bookmarks. – jon Jun 04 '12 at 02:55