* Indentation level in Javascript @ 2012-09-08 18:14 Lars Ingebrigtsen 2012-09-09 1:49 ` Leo 2012-12-21 10:57 ` Ted Zlatanov 0 siblings, 2 replies; 6+ messages in thread From: Lars Ingebrigtsen @ 2012-09-08 18:14 UTC (permalink / raw) To: emacs-devel According to http://atroche.org/post/30994290348/javascript-indentation the most widely used (and recommended) indentation in Javascript is two spaces. `js-indent-level' defaults to 4. Would it make sense to change this? -- (domestic pets only, the antidote for overdose, milk.) http://lars.ingebrigtsen.no * Lars Magne Ingebrigtsen ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Indentation level in Javascript 2012-09-08 18:14 Indentation level in Javascript Lars Ingebrigtsen @ 2012-09-09 1:49 ` Leo 2012-09-09 17:34 ` Lars Ingebrigtsen 2012-12-21 10:57 ` Ted Zlatanov 1 sibling, 1 reply; 6+ messages in thread From: Leo @ 2012-09-09 1:49 UTC (permalink / raw) To: emacs-devel On 2012-09-09 02:14 +0800, Lars Ingebrigtsen wrote: > According to > > http://atroche.org/post/30994290348/javascript-indentation > > the most widely used (and recommended) indentation in Javascript is two > spaces. > > `js-indent-level' defaults to 4. Would it make sense to change this? Quite a few programmers dislike 2 as basic offset; see http://news.ycombinator.com/item?id=4492532 for some good points. Leo ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Indentation level in Javascript 2012-09-09 1:49 ` Leo @ 2012-09-09 17:34 ` Lars Ingebrigtsen 0 siblings, 0 replies; 6+ messages in thread From: Lars Ingebrigtsen @ 2012-09-09 17:34 UTC (permalink / raw) To: Leo; +Cc: emacs-devel Leo <sdl.web@gmail.com> writes: > Quite a few programmers dislike 2 as basic offset; see > http://news.ycombinator.com/item?id=4492532 for some good points. You'll have to point these good points out, because I didn't see any there. Some people there say "use tabs", but I assume those are vi users. :-) -- (domestic pets only, the antidote for overdose, milk.) http://lars.ingebrigtsen.no * Lars Magne Ingebrigtsen ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Indentation level in Javascript 2012-09-08 18:14 Indentation level in Javascript Lars Ingebrigtsen 2012-09-09 1:49 ` Leo @ 2012-12-21 10:57 ` Ted Zlatanov 2012-12-21 11:51 ` Dmitry Gutov 1 sibling, 1 reply; 6+ messages in thread From: Ted Zlatanov @ 2012-12-21 10:57 UTC (permalink / raw) To: emacs-devel On Sat, 08 Sep 2012 20:14:36 +0200 Lars Ingebrigtsen <larsi@gnus.org> wrote: LI> According to LI> http://atroche.org/post/30994290348/javascript-indentation LI> the most widely used (and recommended) indentation in Javascript is two LI> spaces. LI> `js-indent-level' defaults to 4. Would it make sense to change this? I'd be happy to see that default change. Ted ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Indentation level in Javascript 2012-12-21 10:57 ` Ted Zlatanov @ 2012-12-21 11:51 ` Dmitry Gutov 0 siblings, 0 replies; 6+ messages in thread From: Dmitry Gutov @ 2012-12-21 11:51 UTC (permalink / raw) To: emacs-devel Ted Zlatanov <tzz@lifelogs.com> writes: > On Sat, 08 Sep 2012 20:14:36 +0200 Lars Ingebrigtsen <larsi@gnus.org> wrote: > > LI> According to > LI> http://atroche.org/post/30994290348/javascript-indentation > > LI> the most widely used (and recommended) indentation in Javascript is two > LI> spaces. > > LI> `js-indent-level' defaults to 4. Would it make sense to change this? > > I'd be happy to see that default change. +1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Indentation level in Javascript @ 2012-09-09 2:08 Dmitry Gutov 0 siblings, 0 replies; 6+ messages in thread From: Dmitry Gutov @ 2012-09-09 2:08 UTC (permalink / raw) To: sdl.web; +Cc: emacs-devel Leo <sdl.web@gmail.com> writes: > On 2012-09-09 02:14 +0800, Lars Ingebrigtsen wrote: >> According to >> >> http://atroche.org/post/30994290348/javascript-indentation >> >> the most widely used (and recommended) indentation in Javascript is two >> spaces. >> >> `js-indent-level' defaults to 4. Would it make sense to change this? > > Quite a few programmers dislike 2 as basic offset; see > http://news.ycombinator.com/item?id=4492532 for some good points. Different people have different preferences, true. How does that make using the most popular value as default a bad idea? ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-12-21 11:51 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-09-08 18:14 Indentation level in Javascript Lars Ingebrigtsen 2012-09-09 1:49 ` Leo 2012-09-09 17:34 ` Lars Ingebrigtsen 2012-12-21 10:57 ` Ted Zlatanov 2012-12-21 11:51 ` Dmitry Gutov -- strict thread matches above, loose matches on Subject: below -- 2012-09-09 2:08 Dmitry Gutov
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.