-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling automatic brace insertion #512
Comments
I'm not able to reproduce the behavior, but I'm using the treesitter based mode implemented in this PR: #482 |
Yeah, that's the plan. Maybe some helper functions to navigate, but I want to leave most of the things to tree sitter.
I have heard from others that the installation experience is not that good yet. Feel free to send a documentation patch to update the README with instructions for your OS. Thanks for the confirmation, I'm closing the issue since it's fixed. |
Let me repost here also my answer for other people looking for pointers (as I did): you should try setting |
Hey there, landed here from brotzeit/rustic#541
To recap, I am looking for a way to disable the emacs behavior where it inserts closing braces automatically in my Rust code, when I try to add braces to an existing piece of code somewhere.
The added braces (both normal and curly) are reliably in the wrong spot, and I cannot even outsmart the feature by inserting the non-matched closing brace first – it will still insist on adding another closing brace, reliably in a stupid spot.
I get generally unnerved when my editor inserts characters without me typing them. In this case the auto-edit’s quality is especially horrendous.
I am not sure rust-mode is to blame, I searched through the code briefly and did not find a lead. Please point me to the culprit. I have made sure that electric-pair-mode is not to blame, by explicitly toggling it off (it was already off).
The text was updated successfully, but these errors were encountered: