Skip to content

Instantly share code, notes, and snippets.

@ralphtheninja
Created January 25, 2013 01:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralphtheninja/4630965 to your computer and use it in GitHub Desktop.
Save ralphtheninja/4630965 to your computer and use it in GitHub Desktop.
Indentation problems with object literals and functions and js3-mode
// js3 mode with '(js3-lazy-commas t) and '(js3-curly-indent-offset 2) in .emacs
// produces this type of object literals, which is what I want
var obj = {
name: 'magnus'
, number: 314
}
// Howver, this fucks up indentation in functions. Here I want TWO spaces.
function foo() {
var someVar
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment