How to get reliable indentation in elisp
问题 I'm new to Emacs. I'm trying to write an elisp function that works across all modes. Specifically, I want to write a function that inserts braces (a bit like insert-parentheses ) in the same way the following key sequence does for a dumb editor that only supports auto-indent: "{" <ret> "}" <up-arrow> <end> <ret> <tab> This key sequence works for both Java and C# (bsd) style indentation. I need it to work in all brace-y emacs modes, and also in plain text files - I have other formats that have