The key combination C-c C-c in Emacs/AucTeX runs the function TeX-command-master
which decides what command should be run (latex, bibtex, view, or others) and then asks the user for confirmation before running the command.
I would like to bind this to a key (say F9) except without asking for confirmation. This way I would just press F9 and the most appropriate command would be run. How can I do that?
I have this snippet (taken from Emacswiki link below), which does every thing with out bothering me what to do now. I bound to
C-c C-a
I have few more AUCTeX/RefTeX settings here, copy if you like.
Not the most elegant solution, but you could define a keyboard macro containing the following commands:
C-x C-s
to save the fileM-x TeX-command-master <RET>
to run the preselected (by AucTeX) command.After defining,
M-x insert-kbd-macro
will insert the macro definition into the current buffer (as Lisp code). Then you can add it to your.emacs
and bind it toF9
.