I'm learning how to \usepackage{nomencl}. So far so good.
I added the nomenclature compile option to the emacs commands by editing my .emacs file, adding:
;;nomenclature for latex
(eval-after-load "tex"
'(add-to-list 'TeX-command-list
'("Nomenclature" "makeindex %s.nlo -s nomencl.ist -o %s.nls" TeX-run-command nil t :help "Create nomenclature file")))
to it, this works: when I press C-c C-c (the shortcut for TeX-command-list I can use the Nomenclature command and the appropriate file is generated. I am unhappy thou, for the following reason:
When I run bibtex, and then press C-c C-c again, emacs offers to run LaTeX (as appropriate, and if references have changed, it will offer LaTeX again, finally, it will offer View, once the .log doesn't report references have changed. When I run Nomeclature, the next command offered by emacs is View, which is alway inappropriate.
How can I tell emacs to default to LaTeX as the next TeX-command-list command after running Nomenclature (same behavior as BibTeX)?