[Libreoffice] [SCRIPT, EASYHACK] "add-modelines", a script to add modelines to source files

Sebastian Spaeth Sebastian at SSpaeth.de
Tue Oct 12 07:14:39 PDT 2010


> I ran v07 on the various git repos and attached the resulting git
> patches at https://bugs.freedesktop.org/show_bug.cgi?id=30794

Uploaded the slightly modified form which I used to create v2 of the
modeline patches:
https://gist.github.com/622221/a3a6199b21189a0d19f32843f35934fc53699d05

As per Kendy's request it does not introduce a newline after the emacs
modeline and it only inserts an empty line before the vim modeline if
there had been none before.

I did it probably in the most clumsily way (as a result doing away with
the awk usage, awk always gives me the creeps :-)), anyway I wanted to
share my version of add-modelines.

Sebastian


More information about the LibreOffice mailing list