From: Jim Fiocca <jfiocca0@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Why flip RET and C-j with electric-indent-mode?
Date: Mon, 6 Jun 2016 13:23:32 -0400 [thread overview]
Message-ID: <8f661893-8947-1c79-b12e-8b8e81b7dd2b@gmail.com> (raw)
In-Reply-To: <20160603173908736387648@bob.proulx.com>
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-j
>> For 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
next prev parent reply other threads:[~2016-06-06 17:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-28 22:56 Why flip RET and C-j with electric-indent-mode? Bob Proulx
2014-11-28 23:52 ` Drew Adams
2014-11-29 7:50 ` Eli Zaretskii
2014-11-29 23:20 ` Bob Proulx
2014-11-30 1:49 ` Drew Adams
[not found] ` <mailman.14976.1417303216.1147.help-gnu-emacs@gnu.org>
2016-04-29 17:57 ` jfiocca0
2016-06-03 23:41 ` Bob Proulx
2016-06-06 17:23 ` Jim Fiocca [this message]
2016-06-06 22:08 ` Bob Proulx
2014-11-29 12:31 ` Rasmus
2014-11-30 9:59 ` Andreas Röhler
[not found] <mailman.14910.1417215406.1147.help-gnu-emacs@gnu.org>
2014-11-29 9:34 ` jfbu
2014-11-30 4:48 ` Stefan Monnier
-- strict thread matches above, loose matches on Subject: below --
2014-12-11 16:56 Stephen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8f661893-8947-1c79-b12e-8b8e81b7dd2b@gmail.com \
--to=jfiocca0@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.