From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: stardiviner Newsgroups: gmane.emacs.help Subject: [SOLVED] Re: electric-layout-local-mode does not work in c-mode and java-mode Date: Wed, 05 Feb 2020 15:38:25 +0800 Message-ID: <87a75xbi1a.fsf@gmail.com> References: <87pnevi11m.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="21799"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.2; emacs 27.0.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 05 08:39:01 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1izFH3-0005YE-E0 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Feb 2020 08:39:01 +0100 Original-Received: from localhost ([::1]:42364 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izFH2-0002jz-EL for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 05 Feb 2020 02:39:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36666) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1izFGi-0002jh-48 for help-gnu-emacs@gnu.org; Wed, 05 Feb 2020 02:38:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1izFGh-0004Ve-4W for help-gnu-emacs@gnu.org; Wed, 05 Feb 2020 02:38:39 -0500 Original-Received: from [112.17.238.191] (port=31873 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1izFGg-0003Kp-Hb for help-gnu-emacs@gnu.org; Wed, 05 Feb 2020 02:38:39 -0500 Original-Received: by dark.localdomain (Postfix, from userid 1000) id 017C7201A98; Wed, 5 Feb 2020 15:38:25 +0800 (CST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 112.17.238.191 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122354 Archived-At: Stefan Monnier writes: >> When I press ";", electric-layout-local-mode does not auto insert newline and jump to newline. > > CC-mode does things in its own way. You should be able to get it to > work by disabling CC-mode's ad-hoc solution: > > (define-key c-mode-base-map ";" nil) > > > -- Stefan You're right, thanks Stefan. :) -- [ stardiviner ] I try to make every word tell the meaning what I want to express. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner, Matrix: stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3