* latex template
@ 2010-05-08 15:16 Daniel Dalton
2010-05-08 16:03 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Dalton @ 2010-05-08 15:16 UTC (permalink / raw)
To: gnu-emacs-help
Hi,
I have a latex template I constantly use for all documents and have to
insert into all new files. It just contains the basic preamble stuff. Is
it possible to have this template I have which is just lines of latex
source automatically inserted into new files which emacs recognises as
"latex-mode"?
Thanks very much,
Dan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: latex template
[not found] <mailman.6.1273331796.25505.help-gnu-emacs@gnu.org>
@ 2010-05-08 15:59 ` Roger Mason
2010-05-08 16:05 ` Roger Mason
0 siblings, 1 reply; 5+ messages in thread
From: Roger Mason @ 2010-05-08 15:59 UTC (permalink / raw)
To: help-gnu-emacs
Daniel Dalton <d.dalton@iinet.net.au> writes:
> I have a latex template I constantly use for all documents and have to
> insert into all new files. It just contains the basic preamble stuff. Is
> it possible to have this template I have which is just lines of latex
> source automatically inserted into new files which emacs recognises as
> "latex-mode"?
I use a package called template. Unfortunately I can't remember if it
came with Emacs 23.1 or was installed separately. In any case have a
look at:
http://www.emacswiki.org/emacs/CategoryTemplates
Cheers,
Roger
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: latex template
2010-05-08 15:16 latex template Daniel Dalton
@ 2010-05-08 16:03 ` Eli Zaretskii
0 siblings, 0 replies; 5+ messages in thread
From: Eli Zaretskii @ 2010-05-08 16:03 UTC (permalink / raw)
To: gnu-emacs-help
> Date: Sun, 9 May 2010 01:16:16 +1000
> From: Daniel Dalton <d.dalton@iinet.net.au>
> Cc:
>
> I have a latex template I constantly use for all documents and have to
> insert into all new files. It just contains the basic preamble stuff. Is
> it possible to have this template I have which is just lines of latex
> source automatically inserted into new files which emacs recognises as
> "latex-mode"?
Take a look at autoinsert.el.
This and other similar facilities are documented in the "autotype"
manual which comes with Emacs.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: latex template
2010-05-08 15:59 ` Roger Mason
@ 2010-05-08 16:05 ` Roger Mason
2010-05-09 12:33 ` Daniel Dalton
0 siblings, 1 reply; 5+ messages in thread
From: Roger Mason @ 2010-05-08 16:05 UTC (permalink / raw)
To: help-gnu-emacs
Here it is: http://emacs-template.sourceforge.net/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: latex template
2010-05-08 16:05 ` Roger Mason
@ 2010-05-09 12:33 ` Daniel Dalton
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Dalton @ 2010-05-09 12:33 UTC (permalink / raw)
To: help-gnu-emacs
Thanks for all the ideas, a friend ended up giving me some elisp code
for my .emacs which works extremely well.
Thanks!
Dan
On Sat, May 08, 2010 at 01:35:42PM -0230, Roger Mason wrote:
> Here it is: http://emacs-template.sourceforge.net/
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-09 12:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-08 15:16 latex template Daniel Dalton
2010-05-08 16:03 ` Eli Zaretskii
[not found] <mailman.6.1273331796.25505.help-gnu-emacs@gnu.org>
2010-05-08 15:59 ` Roger Mason
2010-05-08 16:05 ` Roger Mason
2010-05-09 12:33 ` Daniel Dalton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).