jed-users mailing list

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

Re: [Jed-users-l] BUG - editing javascript hash tables


Yay! It works!
Thanks

On 6 November 2010 19:46, Tom Culliton <culliton@xxxxxx> wrote:
> Try adding the following to your .jedrc (or jed.rc or whatever)
>
> variable C_Label_Indents_Relative=1;
> variable C_Label_Offset=4;
>
> I found these by a bit of browsing through the cmode.sl code. All of the
> control variables are in there and fairly well documented. Sometimes it
> takes a few experiments to work out all the interactions but it's
> generally trivial.
>
>> I tried that but it didn't work.
>>
>> I searched the javascript.sl code and there's nothing there about
>> setting offsets. It does, like you said, inherit from cmode.
>>
>> On 6 November 2010 15:07, Tom Culliton <culliton@xxxxxx> wrote:
>>> Turn off or adjust the electric colon feature.  If memory serves the
>>> C_Colon_Offset variable controls this (many of the other language modes
>>> are based on the C mode).
>>>
>>>> Steps to reproduce:
>>>>
>>>> $ touch test.js
>>>> $ jed test.js
>>>>
>>>> Then type:
>>>>
>>>> var options = {[ENTER]
>>>>   foo:
>>>>
>>>> As soon as you've typed the ':' after the word "foo" it automatically
>>>> de-indents itself all the way to the left.
>>>>
>>>> I'm using Jed 0.99.19U.
>>>> I find that generally it's hard to edit hash tables as the indentation
>>>> is jumping around a bit.
>>>>
>>>> Cheers, Peter
>>>> --
>>>> Peter Bengtsson,
>>>> work www.fry-it.com
>>>> home www.peterbe.com
>>>> hobby www.issuetrackerproduct.com
>>>> fun crosstips.org
>>>> _______________________________________________
>>>> 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
>>>
>>
>>
>>
>> --
>> Peter Bengtsson,
>> work www.fry-it.com
>> home www.peterbe.com
>> hobby www.issuetrackerproduct.com
>> fun crosstips.org
>> _______________________________________________
>> 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
>



-- 
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
fun crosstips.org
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l


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