I'm editing this code:
callFunction({
x: somearray,
});
Then I want to extract somearray
to be a variable with a copy. I cut somearray
and delete the colon, then enter (_
is the cursor):
const x = [..._
callFunction({
x
});
Then yank, and the super helpful web-mode screws up my code:
const x = [...somearray_
callFunction({
x
});
Then I close the bracket and have to reindent the function call expression.
How to disable this autoindenting after yank?
Disabling electric-indent-local-mode
does not help. Neither does setting electric-indent-inhibit
to t
. Searching for "web-mode disable auto-indent" does not lead to a solution.