Ads

Tuesday, September 01, 2009

first real attempt at some emacs hackery (related to beamer)

I create my presentations in beamer (uses latex) and use emacs as my editor.

I found myself typing,


\frame{
\frametitle{}
\begin{itemize}
\item
\end{itemize}

And then either going to the title or one space past the item.

I quickly whipped this up, stuck it in my .emacs and was on my way.


;;a function for helping with beamer
(defun make-new-frame ()
(interactive)
(insert "
\\frame{
\\frametitle{}
\\begin{itemize}
\\item
\\end{itemize}
}
")
(search-backward "\\item")
(forward-char 6))


Alt-x make-new-frame [enter] and I start converting thoughts to bits.

No comments: