On Wed, Jan 08, 2014 at 10:23:28AM +0900, ISHIKAWA,chiaki wrote: > (2013/09/10 19:17), ishikawa wrote: > > [ omissions ] > > > > I am getting the hang of emacs mode line. > > > > /* -*- Mode: javascript; tab-width: 8; indent-tabs-mode: nil; > > c-basic-offset: 2 ; js-indent-level : 2 ; js-curly-indent-offset: 0 -*- */ > > /* vim: set ts=2 et sw=2 tw=80: */ > > > > seem to do the job. > > > > I have not tested vim part. > > We can probably omit js-curly-inent-offset here, but > > for now, I am keeping it as a reminder. > > It seems that js mode in Emacs worked with c-basic-offset a couple of years > > ago, but today's js-mode (Javascript mode is an alias) > > needs its own variables, I think. > > > > > > I have been tinkering with javascript mode line for Emacs. > > /* -*- Mode: javascript; tab-width: 8; indent-tabs-mode: nil; > c-basic-offset: 2 ; js-indent-level : 2 -*- */
Do we need so much boilerplate in all our files? With this and vim-modeline, we now have editor boilerplate that takes as much space as the MPL boilerplate. Also, afaik, vim modelines are mostly useless, since vim doesn't use them by default anyways (at least, it doesn't on Debian). And emacs can take local variables in a .dir-locals.el file. Why not put one at the root directory in mozilla-central? (and others if necessary in subdirectories for overrides) Mike _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform