From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: Why flip RET and C-j with electric-indent-mode? Date: Fri, 3 Jun 2016 17:41:46 -0600 Message-ID: <20160603173908736387648@bob.proulx.com> References: <20141128153825244895059@bob.proulx.com> <83tx1ila1w.fsf@gnu.org> <604600ef-4fdb-46ad-b7c8-30625ac303d1@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1464997345 13324 80.91.229.3 (3 Jun 2016 23:42:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jun 2016 23:42:25 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: jfiocca0@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 04 01:42:20 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b8yjK-00074I-Uz for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Jun 2016 01:42:19 +0200 Original-Received: from localhost ([::1]:58211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8yjJ-00062b-UP for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Jun 2016 19:42:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8yiw-00062L-2v for help-gnu-emacs@gnu.org; Fri, 03 Jun 2016 19:41:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8yiq-0004PV-3m for help-gnu-emacs@gnu.org; Fri, 03 Jun 2016 19:41:53 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:50261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8yip-0004PR-U7 for help-gnu-emacs@gnu.org; Fri, 03 Jun 2016 19:41:48 -0400 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id 4CE9B6E7; Fri, 3 Jun 2016 17:41:47 -0600 (MDT) Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id EAB3721260; Fri, 3 Jun 2016 17:41:46 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id CAA8A2DC4D; Fri, 3 Jun 2016 17:41:46 -0600 (MDT) Mail-Followup-To: jfiocca0@gmail.com, help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <604600ef-4fdb-46ad-b7c8-30625ac303d1@googlegroups.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 96.88.95.61 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110289 Archived-At: 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