-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Does not play along with c-toggle-auto-newline
#79
Comments
Well, basically, this can be simulated with SP's post-action hooks (it's one of the reasons they exist). I'd be cool if someone wrote a C/C++ setup I could include in the default implementation (like the extra latex support). I guess it would need multiple styles (k&r/GNU etc.) but that can be extended gradually. Possibly reusing built-in C/C++ mode flags would be a bonus. Here's an example for the { brace, using "java" style: https://github.com/Fuco1/smartparens/wiki/Permissions#wiki-pre-and-post-insertion-hooks |
Yes, but cc-mode already has lots of language+style specific formatting goodies. I just hoped there could be a way they could all play along, but I suppose that was asking for too much :) Feel free to close this issue. |
Well, it's not easily possible, because the c-electric-whatever hard-binds the keys. In theory, I could work around it using some hacks. But I don't have time to do the research now, unfortunately. |
Yes, I looked at the code and didn't look simple to fix to me either. |
This will be partially solved by implementing #80. If you have some ideas regarding that, please post them there. I'm going to close this issue for now. |
Not sure if it will ever, though, as
c-toggle-auto-newline
is also trying to perform text insertions.The text was updated successfully, but these errors were encountered: