I'm using js2-mode for working with javascript in emacs and for the most part it's very useful. However, the indenting methods are terribly frustrating when working with jQuery, closures, and JSON... for instance, code that I wish to be indented like this: var foo = jQuery('#mycontainer ul li').each(function(el){ var bar = el.html(); }); Turns out as: var foo = jQuery('#mycontainer ul li').each(fu