yoya / js2-mode

Automatically exported from code.google.com/p/js2-mode
0 stars 0 forks source link

option for Enter to indent new line #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Some editors (Xcode comes to mind) automatically indent new lines to the
proper location after you hit Enter.  This is trivial to support and should
have an option.

Original issue reported on code.google.com by steve.ye...@gmail.com on 24 Apr 2008 at 10:35

GoogleCodeExporter commented 8 years ago

Original comment by steve.ye...@gmail.com on 24 Apr 2008 at 10:42

GoogleCodeExporter commented 8 years ago
Added new variable `js2-enter-indents-newline', default t (true).

Original comment by steve.ye...@gmail.com on 16 Jun 2008 at 6:11

GoogleCodeExporter commented 8 years ago
This seems redundant given the existence of the frequently useful and
non-mode-specific `newline-and-indent' (C-j). I would think a nil default is 
more
appropriate as the majority of Emacs users already have access to this behavior
without configuring anything (versus this scenario where I'm forced to 
configure in
order to get non-indenting behavior). I might be missing something though.

Original comment by dereksla...@gmail.com on 16 Jun 2008 at 9:30