From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iEnZBHBSGF/pNAAA0tVLHw (envelope-from ) for ; Wed, 22 Jul 2020 14:51:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id EGKIAHBSGF+zbAAAbx9fmQ (envelope-from ) for ; Wed, 22 Jul 2020 14:51:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8A2AF940214 for ; Wed, 22 Jul 2020 14:51:27 +0000 (UTC) Received: from localhost ([::1]:44286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jyG5e-0003De-Gf for larch@yhetil.org; Wed, 22 Jul 2020 10:51:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34388) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jyG53-0003CI-HK for emacs-orgmode@gnu.org; Wed, 22 Jul 2020 10:50:49 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:50504) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jyG51-0004WY-S4 for emacs-orgmode@gnu.org; Wed, 22 Jul 2020 10:50:49 -0400 Received: by mail-wm1-x32c.google.com with SMTP id c80so2197318wme.0 for ; Wed, 22 Jul 2020 07:50:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=IewyR58JJv5cwnc4XetR/7qSMN9ripvUBlc55Q+7vDA=; b=AExnJnIoG0U7sh+4wvaAhAmsDdq1AufldhNBvZna2aP5obStlajgvn3AyDy5O+vNRa yTU0LzBpnPxyPxJizU2apr7/iYQ0THDL/l3LreINAW2v3lf+EvskeHZfFsacHKpJcwqa q1b2FFIv6KoibP0SgbeOBKsxnnuz/BlUG0gZZ3Tr8+8zA0HPeNK/BEAhpzJdT5+TVFiC bTf9kUJaeSaKXyHNs1oUXGIz3tJhqfluWxBzn6ImiqFynWzHcTFfD09KGc8jCAQfn1nE 7AfROv+1cvSCW86DmptV4Q2bmAO7F/dgOk6fM3fERrsn2YxvtrMHredICnLtytyjzskQ Pwxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=IewyR58JJv5cwnc4XetR/7qSMN9ripvUBlc55Q+7vDA=; b=ApgVrK51zJExQ16Y6M7/y/fL4dCZyLTTGxHIgJVHiQL2VU88wGFbBOVjimi78Xu+7/ toIi/1sABklTPCZygPDieMrs1y6d3QXdIYSEI5LZ0GMLkyPSZShrDBIeoOf8epWw3XlD i3vQfQYJ74HvzyBIIiJGYQJ5rkessZuJ4SipnT+Gy0Hrt4vo/SwPa8+fPHqorRUEN5D+ 94ZAYHpCbhckkSwPqUwvLRuh9tVxrEDg33fKKeHtEsfwnlYmRwduixmyV+ZdziB5o+nF eIOyNhRfodeV7AKh3UOLMlYlCLsuQfl32JNLRzd5WJTtMnpF3Kmy1AvdGOFO3JdObOYW 3zqg== X-Gm-Message-State: AOAM531yPG1bJrCv1NxovkZhUMYecN7+ST9Uu5Zagd0uSQZTdQQ9lkd4 4ps6rsho6fC8b+Ucu1osMqJuFSeB X-Google-Smtp-Source: ABdhPJz2br6NMyTerM1IT+mF9Nv5IpFucw1Tq+PBzSLy0gOD175dQ0o4KG8M/CUuFtVdXtLSS5fhhw== X-Received: by 2002:a7b:c8c2:: with SMTP id f2mr33173wml.57.1595429445531; Wed, 22 Jul 2020 07:50:45 -0700 (PDT) Received: from hirondell (183.114.141.77.rev.sfr.net. [77.141.114.183]) by smtp.gmail.com with ESMTPSA id d18sm201566wrj.8.2020.07.22.07.50.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Jul 2020 07:50:44 -0700 (PDT) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Jarmo Hurri Subject: Re: Binding RET to org-return-and-maybe-indent References: <878sfbycip.fsf@iki.fi> Date: Wed, 22 Jul 2020 16:50:43 +0200 In-Reply-To: <878sfbycip.fsf@iki.fi> (Jarmo Hurri's message of "Wed, 22 Jul 2020 15:12:14 +0300") Message-ID: <87sgdjhad8.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=kevin.legouguec@gmail.com; helo=mail-wm1-x32c.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=AExnJnIo; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: DPgeOxGld5TR Jarmo Hurri writes: > Is there any downside to binding RET to org-return-and-maybe-indent? > > I want to remove RET indentation in org mode. For example > > # --------------------------------------------------------------- > * Demo of indentation > - when I press return at the end of the word THIS > - I get indentation > # --------------------------------------------------------------- RET indentation is something that has been introduced recently on the master branch (which will become Org 9.4 soon). In Org 9.3, with your example, RET does not indent, while C-j does. As ORG-NEWS notes, if you want RET to stop indenting, you can disable electric-indent-mode in org-mode-hook: #+begin_src emacs-lisp (add-hook 'org-mode-hook (lambda () (electric-indent-mode -1))) #+end_src > However, if I call org-return-and-maybe-indent at the same point, I do > not get indentation. > > But would changing the binding of RET cause issues elsewhere? I can't think of any bad side-effect, but my imagination might be lacking. The only downside I can think of is that RET will become redundant with C-j.