Created
January 25, 2013 01:54
-
-
Save ralphtheninja/4630965 to your computer and use it in GitHub Desktop.
Indentation problems with object literals and functions and js3-mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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