0

Most of my \LaTeX files have the same boiler plate code, so I would like Emacs to automatically insert this boiler-plate whenever I open a fresh, blank \LaTeX file.

In particular, I would like to include the following preamble.

    \usepackage{amsthm}
    \usepackage{amssymb}
    \usepackage[backend=bibtex, style=numeric, sorting=none]{biblatex} 
    \setlength\bibitemsep{\baselineskip}
    \addbibresource{References.bib}
    \author{A.U.Thor}
    \date{}

    \begin{document}
    \setcounter{tocdepth}{0}


    \nocite{*}
    \printbibliography
    \end{document}

How should I modify my .emacs file to do this?

0

See the Emacs Wiki page Automatic File Headers.

That page mentions mode Auto Insert, which is part of vanilla Emacs, and it describes libraries header2.el and file-template.el.

Not the answer you're looking for? Browse other questions tagged or ask your own question.