Emacs - Specific Bracket Behavior Customization
In emacs, I prefer the electric-pair-mode behavior for parentheses and brackets as opposed to what seems like the "jumpy" default behavior.
However, I currently use auto-newline and like the automatic newlines inserted with the curly brackets (I use BSD style indentation).
What I would like to figure out is how to best combine these behaviors, so that when I type an opening curly bracket, an indented line and closing bracket will follow.
I tried looking on Google for potential solutions, but I had trouble trying to phrase what exactly I'm looking for.
In emacs, I prefer the electric-pair-mode behavior for parentheses and brackets as opposed to what seems like the "jumpy" default behavior.
However, I currently use auto-newline and like the automatic newlines inserted with the curly brackets (I use BSD style indentation).
What I would like to figure out is how to best combine these behaviors, so that when I type an opening curly bracket, an indented line and closing bracket will follow.
I tried looking on Google for potential solutions, but I had trouble trying to phrase what exactly I'm looking for.
No comments:
Post a Comment