emacs.d
emacs.d copied to clipboard
Incorrect Closing Bracket Indentation on Emacs 28.1
Emacs 28.1 installed through snap. $ emacs --version GNU Emacs 28.1
if (cond) {
for (auto a : v) {}
^ when press enter in between brackets
}
expected:
if (cond) {
for (auto a : v) {
// cursor is here
}
}
but on Emacs 28.1:
if (cond) {
for (auto a : v) {
// cursor is here
} // <-- incorrect indentation.
}
Same issue as this: https://github.com/hlissner/doom-emacs/issues/5200
because 28.1 enabled electirc-pair-mode? Raise a issue to Emacs core team or the author of that mode.
Same issue here. Really annoying.
Someone already raised an issue, but still no updates from upstream... https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55340
emacs 28.2 still have this problem, any solutions now?
fixed c773ce13