[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
add own function to latex-environment
From: |
Sterni |
Subject: |
add own function to latex-environment |
Date: |
Mon, 16 Jul 2007 12:43:07 -0700 (PDT) |
hello,
im new in this forum. and i´m german so excuse me for my bad english :)
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.
- add own function to latex-environment,
Sterni <=