i use emacs to write latex documents.
i want to add an own function to the auctex/latex environment.
so if i press "C-c C-e" my own function should be listed to (next to
"itemize", "figure" and so on)
my code:
(global-set-key "\C-c\C-e\C-f" 'latex-frame)
(append '(latex-environment) '(latex-frame))
(defun latex-frame ()
;;insert frame
(interactive)
(beginning-of-line)
(insert "\\begin{frame} \n \\frametitle{}\n\\end{frame} \n")
(backward-char 15)
)
if i do "M-x latex-frame" everything works, but i want that "frame" is
listet in the environment list!
the shortcut "\C-c\C-e\C-f" isnt working too .....
i hope i can get some help.
thank you!
--
View this message in context: http://www.nabble.com/add-own-function-to-latex-environment-tf4090725.html#a11629566
Sent from the Emacs - Help mailing list archive at Nabble.com.
> i want that "frame" is
> listet in the environment list!
Recent versions of AUCTeX contain support for beamer.sty. You just have
to activate parsing as explained on the first page of AUCTeX's manual.
--
Ralf