Hello fellow (x)emacs users.
Since vdr C++ files have a .c suffix, emacs always load c-mode instead
of C++ mode when opening vdr files.
Here's a small perl one-liner that will add a "-*- cperl -*-" in a
comment in the first line of all code files in the current
directory. This way, emacs will always load c++ mode when reading a
vdr file.
perl -0777 -p -i -e 's!^!// -*- c++ -*- \n! unless /^.*c\+\+.*\n/;' *.[hc]
(This one-liner can be run several times. It will not modify a file if
the emacs line is already there)
May I humbly suggest Klaus and other Plugin authors to use this script
so that using emacs with vdr code will be easier ?