Thanks Matthew, thanks Lex -
clearing the cache worked for the .conf files, but not for
the .h files. Additionally renaming/removing
/usr/share/geany/filetype_extensions.conf then made everything work. Should
have tested the last measure by itself before, but did not
do it. Anyways, it works now. Thanks a lot! -Paul
> From: Lex Trotman <elextr(a)gmail.com>
> To: Geany general discussion list <geany(a)uvena.de>
> Subject: Re: [Geany] filetype_extensions.conf not being read?
> Message-ID:
> <CAKhWKDP=TyfA4PV6ti8geZoyJZKZR1Jg=YP6LJOVrD_zcx4yDg(a)mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 15 August 2012 01:26, daspostloch <daspostloch(a)googlemail.com> wrote:
>>
>> Hi,
>>
>> on my setup, filetype_extensions.conf seems not to get honored.
>>
>> An example: editing
>>
>> ~/.config/geany/filetype_extensions.conf
>>
>> to hold
>>
>> C++=*.cpp;*.cxx;*.c++;*.cc;*.c;*.h;*.hpp;*.hxx;*.h++;*.hh;*.C;*.H;*.conf;
>> Conf=*.ini;config;*rc;*.cfg;*.desktop;
>>
>> , that is, moving the *.conf from Conf to C++, does not result
>> in .conf files be treated as C++ files. This is only for illustration,
>> my actual problem is that I want my .h files to be recognized as C++
>
> Been using that for ages, works fine, Matthew is probably right clear the cache.
>
> Cheers
> Lex
>
>> rather than pure C, and then I discovered that nothing in
>> filetype_extensions.conf seems to get read/honored.
>>
>> Funnily enough, copying filetype_extensions.conf to the subdirectory
>> ~/.config/geany/filedefs results in that file itself being now
>> recognized as a C++ file. However, no other .conf files are, and
>> it also does not work if I move a .h file in that folder with .h
>> only declared as belonging to C++ (not C or Objective-C), for example.
>>
>> Any ideas what else to try / how to debug? I've restarted geany.
>>
>> Thanks! -Paul
>>
>> > geany --version
>> geany 1.22 (built on Jun 18 2012 with GTK 2.24.10, GLib 2.32.3)
>>
>> > uname -a
>> Linux host 3.4.7-1-ARCH #1 SMP PREEMPT Sun Jul 29 22:02:56 CEST 2012 x86_64
>> GNU/Linux