I am using emacs web-mode, and the tabbing in JS files seems to be acting strangely.
I have tab set to indent 2 spaces, but when the indent reaches 8 spaces, web-mode turns them into a tab, and then continues to tab 2 spaces until in reaches another 8, and converts that into another tab, etc.
Can I stop this from happening and tell emacs/web-mode to only ever indent spaces?
EDIT:
Here is a short nested function example:
(function() {
function() {
function() {
function() {
function() {
// Indenting problem.
}
}
}
}
})()
It's obviously showing up fine in Emacs, but you can see the indentation problem here.
I will note here that this also occurs in javascript-mode.