unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 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-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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).