help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: distinguish .h files


From: Tassilo Horn
Subject: Re: distinguish .h files
Date: Thu, 21 Oct 2010 12:43:13 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux)

Tassilo Horn <tassilo@member.fsf.org> writes:

>>    Third, Emacs tries to determine the major mode by looking at the
>> text at the start of the buffer, based on the variable
>> `magic-mode-alist'.  By default, this variable is `nil' (an empty
>> list), so Emacs skips this step; however, you can customize it in
>> your init file
>>
>> How long start of the buffer? Which variable control this behavior?
>
> I don't know exactly, but in general only the first line is relevant,
> with some shebang like
>
> #!/bin/bash

Oh, just a correction: Usually shebang lines should be handled
automatically by `interpreter-mode-alist'.

Bye,
Tassilo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]