|
From: | Jim Fiocca |
Subject: | Re: Why flip RET and C-j with electric-indent-mode? |
Date: | Mon, 6 Jun 2016 13:23:32 -0400 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 |
Bob,I am using C and C++ programming modes. Previously whenever I typed an open curly brace, it would automatically indent to the correct column. Now, with electric-indent-mode nil, it just stays at column 1. This has nothing to do with RET or ctrl-J.
Funny thing is, if I turn electric-indent-mode on and then off while in a C-mode buffer, it works fine. I just can't automate it. Something wrong with the timing of turning it off globally or turning it off in my c-mode-hook in .emacs.
Thanks, Jim On 6/3/2016 7:41 PM, Bob Proulx wrote:
jfiocca0@gmail.com wrote:(setq electric-indent-mode nil) ; new in 24, default is t, breaks RET/C-jFor me, that does not completely revert the behavior back to the old way. It does not automatically indent curly braces like it used to. How can I get back to the old way + auto-indent C curly braces?I have noticed this too. But I haven't figured out the details yet. Could you say what programming mode you are using? There are many with curly braces. And could you describe more precisely which action is different? Is using C-j instead of Enter acceptable? Bob
[Prev in Thread] | Current Thread | [Next in Thread] |