emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove js--treesit-backward-up-list or fix it


From: Theodor Thornhill
Subject: Re: Remove js--treesit-backward-up-list or fix it
Date: Sat, 29 Oct 2022 21:30:24 +0200

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Because of all the stuff we set before we init tree sitter we get a
>> super unwanted behavior of the cursor jumping back to indentation for
>> every () {} etc. This is because of these settings, which are IMO pretty
>> bad defaults:
>> ```
>>   (setq-local electric-indent-chars
>>            (append "{}():;," electric-indent-chars)) ;FIXME: js2-mode adds 
>> "[]*".
>>   (setq-local electric-layout-rules
>>            '((?\; . after) (?\{ . after) (?\} . before)))
>> ```
>
> While these may be bad defaults, they should provide reasonable
> behavior, so if you get cursor jumping with such settings, then we
> should fix that regardless if its the default.
>

Yuan fixed it :-)

-- 
Theo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]