I'm using Emacs 24.3.1 on Ubuntu 14.04 with AUCTex for LaTeX editing. The command C-c C-c allows me to easily compile the document with pdflatex. However, the second time I'm running C-c C-c, instead doc-view is launched (showing the resulting pdf).
This doesn't fit with my workflow. I use a different pdf viewer, and sometimes need to compile the document twice to get citations right etc.
Can I disable doc-view so that C-c C-c always executes pdflatex?
I've tried the solutions suggested here How to disable DocView as default command in AUCTeX? but had no effect.
This solution didn't work either how to modify default command for TeX-command-master (ie, C-c C-c)? since I don't seem to have a TeX-command-master command installed (not available on M-x). C-c must be mapped to something else.
EDIT (Solved): It turns out my problem was caused by me using Emacs latex mode rather than AUCTeX. After making sure AUCTeX is installed, it's invoked with LaTeX-mode, in contrast to Emacs latex mode that is invoked with latex-mode. The answer here how to modify default command for TeX-command-master (ie, C-c C-c)? now solves my problem.
TeX-view-program-selection
variable. Note opening doc-view isn't the default behavior, you somehow changed it in your init file.AUCTeX-version
too (always in a LaTeX buffer).