jed-users mailing list

[2011 Date Index] [2011 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[Jed-users-l] No tabs anywhere in javascript mode


I'm using javascript.sl which, at the time of writing, isn't on jedmodes so I don't know where I got it from. Perhaps it came in standard jed lib. 

Anyway, what I want is 2 spaces for indentation and NEVER any tabs. 
To get the 2 spaces I added this to my .jedrc::

 variable C_INDENT = 2;

But if I type something like this:

function foo() {
    return {
      bar: function() {
         /* mulitline
          * comment             <----- here
          */                              <---- and here
      }
   }
}

Then I get tabs inserted to align the indentation.
It's not when I type multi-line comments. It happens in other scenarios too. 

For Python I was able to set this up:

define python_mode_hook ()
{
   TAB = 4;
   USE_TABS = 0;
}

Can I use something like this for javascript?


Cheers, Peter
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


[2011 date index] [2011 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]