GNOME Bugzilla – Bug 698704
[PATCH] Add VIM and Emacs modelines
Last modified: 2013-04-24 19:57:50 UTC
Created attachment 242295 [details] [review] Add modelines for emacs and vim This patch adds VIM and Emacs modelines to the js-files of gnome-maps.
Review of attachment 242295 [details] [review]: ::: src/application.js @@ +1,2 @@ +/* -*- Mode: JS2; indent-tabs-mode: nil; js2-basic-offset: 4 -*- */ +/* vim: set et ts=4 sw=4: */ I'd prefer these to be at the end of the files. IIRC its all the same to editors?
I just tried this quickly and then read up on this[1] and apparently emacs requires the line to be at the top, unless you're ok with a really verbose list style for setting the mode vars. I think we should just put them at the top, that's what I've seen most projects do. -- 1: http://www.delorie.com/gnu/docs/emacs/emacs_486.html
Ah ok.