jed-users mailing list

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

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


Yay! That works brilliantly. Thanks Tom!

On 14 Jun 2011, at 18:43, Tom Culliton wrote:

> AFAIK those variables should work universally.  We follow a "no tabs" policy
> in all of our code and my .jedrc has USE_TABS=0; as a global setting.
> 
> On Tue, Jun 14, 2011 at 12:14 PM, Peter Bengtsson <mail@xxxxxxxxxxx> wrote:
> 
>> 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
>> 
> _______________________________________________
> Jed-users-l mailing list
> Jed-users-l@xxxxxxxx
> http://mailman.jtan.com/mailman/listinfo/jed-users-l

_______________________________________________
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]