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?

Drew
  • 75,699
  • 9
  • 109
  • 225
smilingbuddha
  • 1,131
  • 10
  • 26

1 Answers1

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.

Drew
  • 75,699
  • 9
  • 109
  • 225