- Subject: Re: How do I set up a template?
- From: "G. Milde" <milde@xxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 3 Nov 2008 10:05:11 +0100
On 29.10.08, Michele Dondi wrote:
> On Wed, 29 Oct 2008, Olesen, Mark wrote:
> I presume that positioning the cursor at a given position specified e.g.
> by a language specific comment would be difficult enough in terms of
> amount of code for one to consider the gain not worth the effort, right?
No. templates.sl from jedmodes.sf.net has this already and a lot more:
replacements["<REALNAME>"] = extract_element(get_realname(), 0, ',');
replacements["<USERNAME>"] = get_username();
replacements["<EMAIL>"] = get_emailaddress();
replacements["<DATE>"] = get_iso_date();
replacements["<FILENAME>"] = path_basename(buffer_filename);
replacements["<FILENAME_SANS>"] =
path_sans_extname(replacements["<FILENAME>"]);
% for compatibility with Mikael Hultgren's template.sl
replacements["@author@"] = replacements["<REALNAME>"];
replacements["@mail@"] = replacements["<EMAIL>"];
replacements["@filename@"] = replacements["<FILENAME>"];
replacements["@filename_sans@"] = replacements["<FILENAME_SANS>"];
Günter
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2008 date index]
[2008 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]