I'm trying to get TeXcount to work inside Emacs with AUCTeX. According to the TeXCount website, it should be possible to use the following to run texcount
on the current buffer:
(require 'tex)
(add-to-list 'TeX-command-list
(list "TeXcount" "texcount %s.tex" 'TeX-run-command nil t))
When I run this, a buffer is created with the results, but the buffer does not open in the current window and is instead buried in the buffer list where I have to then go and look for it. How can I get AucTeX to open the buffer next to the one I'm currently looking at?