I'm trying to add a list of code listings to my document, with a reference to it in the TOC. By simply calling
\lstlistoflistings
I end up getting everything I need (the list of listings, an entry in the TOC, etc) EXCEPT for the fact that the entry is always named 'Contents'. I was able to change the title of the listing page itself by running the command
\renewcommand\lstlistlistingname{List of Code}
but this doesn't change the reference in the table of contents.
EDIT: Adding a minimal working example
\documentclass{Thesis}
\usepackage{listings}
\begin{document}
\renewcommand\lstlistlistingname{List of Code}
\tableofcontents
\lstlistoflistings
\lstset{caption=Some Code}
\begin{lstlisting}
Some code
\end{lstlisting}
\end{document}

\clearpage\addcontentsline{toc}{chapter}{\lstlistlistingname}just before\lstlistoflistings– karlkoeller Dec 16 '13 at 08:26thesis.clsthe OP was using, so this can not be an answer. – karlkoeller Jan 24 '14 at 16:04articleand appear as one in a custom class. Voted for re-opening. As well, notice that nobody ever pointed out to the OP that usage of a custom class that we don't have is frowned upon. – yo' Jan 24 '14 at 18:28