Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Visiting inexistent file

0 views
Skip to first unread message

Urban Gabor

unread,
Nov 23, 2009, 5:27:51 AM11/23/09
to help-gn...@gnu.org
Hi guys,

I have an issue and I would like to have the most elegant solution.

Whenever I visit an inexistent file, I would like to load an empty template file for that type. EG.: for .c and .h files, for .py and so on.

Is there any possibility?

Thanx in advance,

Gabaux
Linux is like a wigwam: no gates, no windows, and an apache inside!

Bernardo

unread,
Nov 23, 2009, 5:51:23 AM11/23/09
to help-gn...@gnu.org
> Hi guys,
>
> I have an issue and I would like to have the most elegant solution.
>
> Whenever I visit an inexistent file, I would like to load an empty template file
> for that type. EG.: for .c and .h files, for .py and so on.
>
> Is there any possibility?
>
> Thanx in advance,
>
> Gabaux


see this documentation page:
(info "(emacs) Autoinserting")


Message has been deleted
Message has been deleted

Bernardo

unread,
Nov 25, 2009, 5:22:52 AM11/25/09
to help-gn...@gnu.org
B. T. Raven said the following on 11/25/09 05:03:
> B. T. Raven wrote:
>> That gives: "No such node or anchor"

works fine here under GNU/Linux Emacs 23.1.1

>
> However C-h i d m autotype shows:
>
> 6. Autoinserting
>
> So:
>
> (info "(autotype) autoinserting")
>

i'm guessing you're running this under MS Windows (have seen a similar
effect on my PC at work)
looks like Autoinserting has been moved into a separate info file under
Windows, which is a bit of shame, it is not found in index under the
main info file


Message has been deleted

harven

unread,
Nov 26, 2009, 4:26:40 AM11/26/09
to
"B. T. Raven" <ni...@nihilo.net> writes:

>>> However C-h i d m autotype shows:
>>>
>>> 6. Autoinserting
>>>
>>> So:
>>>
>>> (info "(autotype) autoinserting")
>>>
>>
>> i'm guessing you're running this under MS Windows (have seen a similar
>> effect on my PC at work)
>> looks like Autoinserting has been moved into a separate info file under
>> Windows, which is a bit of shame, it is not found in index under the
>> main info file
>>
>>
>

> Correct. I guess the wigwam tag-line in the OP should have tipped me
> off. I didn't know the info files linking was different on the two OSes.

There is also a separate autotype info file under debian.

GNU Emacs 23.1.1 (i486-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-09-14 on raven, modified by Debian

0 new messages