* Alexander Dahl <p...@lespocky.de> [2011-06-23 18:10]: > Hei hei, > > On Thu, 23 Jun 2011 17:48:02 +0200, Bernhard Walle wrote: > > Set the file type to kconfig. The *.make files have a modeline for vim, > > so why not also for the Kconfig files. > > % grep vim: rules/*.in > rules/argtable2.in:# vim: syntax=kconfig > rules/calibrator.in:# vim: syntax=kconfig > rules/hackbench.in:# vim: syntax=kconfig > > I would recommend altering these instead of adding an addtional line. > ;-)
Granted. > Despite of that: +1, very handy for vim users. > > If you're already on this topic: Would you mind adapting the modeline > for the rules/*.make files to something like this? > > # vim: ft=make noet Well, IMO setting the filetype is better than just the syntax, because then you can add autocmd FileType kconfig set ts=8 sw=8 noet autocmd FileType make set ts=8 sw=8 noet to your .vimrc. > But I guess the templates used by `ptxdist newpackage` should be > changed too, so freshly created packages get modelines in the same > style. My patch touched also the templates. Regards, Bernhard -- ptxdist mailing list ptxdist@pengutronix.de