From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: TRS-80 Newsgroups: gmane.emacs.help Subject: Re: How to automatically align to first word of previous line? Date: Tue, 05 Apr 2022 17:32:46 -0400 Message-ID: <09feab5cc0190b2c532ebaf5ab8bb517@isnotmyreal.name> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22875"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Roundcube Webmail/1.4.12 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 05 23:33:25 2022 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 1nbqnk-0005hJ-I7 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Apr 2022 23:33:24 +0200 Original-Received: from localhost ([::1]:42654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbqnj-000210-2F for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Apr 2022 17:33:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbqnH-00020b-G3 for help-gnu-emacs@gnu.org; Tue, 05 Apr 2022 17:32:55 -0400 Original-Received: from server173-4.web-hosting.com ([68.65.122.210]:43296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbqnF-0001Aq-En for help-gnu-emacs@gnu.org; Tue, 05 Apr 2022 17:32:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=isnotmyreal.name; s=default; h=Content-Transfer-Encoding:Content-Type: Message-ID:References:In-Reply-To:Subject:To:From:Date:MIME-Version:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=guwjVyZdenbN0pnyk2rWtg4Xp5nfCHEywVVD5CNDkYE=; b=EEX6Nu9IPmogY1AnFxDoCrw/NT qJE0f3cqDOpBomKAWuZrmBGzAvpeUqKgzd9bbftwMvprANqBzg0WT5AaJ3Q6DzEHPi4pjL9tARju6 rc4hTwd5OM1b5XSyx+KeHkOQYMYHlw5iaCUXF6g2BozUcHxBojNJRcyvqp/kZHtwIEhfaxpa7U92s xumX/dNzKekw76CwDTQLwvimW2dQUuMl+c0kcP/rktYs5WD0KkdFU3SqVgpacxAEd3Aq1VcIP48dj PFkX9kxfhY2lUHHK1OzVjrvWY5qF8B3x+7IJy70KNQkIBK1HE4EOYAkuE15pC2Dn30boi5Zh73V7T NQYU/4ig==; Original-Received: from [127.0.0.1] (port=36476 helo=server173.web-hosting.com) by server173.web-hosting.com with esmtpa (Exim 4.94.2) (envelope-from ) id 1nbqn8-00D8M4-Sp for help-gnu-emacs@gnu.org; Tue, 05 Apr 2022 17:32:51 -0400 In-Reply-To: X-Sender: lists.trs-80@isnotmyreal.name X-OutGoing-Spam-Status: No, score=-0.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server173.web-hosting.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - isnotmyreal.name X-Get-Message-Sender-Via: server173.web-hosting.com: authenticated_id: lists.trs-80@isnotmyreal.name X-Authenticated-Sender: server173.web-hosting.com: lists.trs-80@isnotmyreal.name X-From-Rewrite: unmodified, already matched Received-SPF: pass client-ip=68.65.122.210; envelope-from=lists.trs-80@isnotmyreal.name; helo=server173-4.web-hosting.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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:136865 Archived-At: On 2022-03-03 03:11, Jean Louis wrote: > I have this particular situation below, where I would like to avoid > position (1) and rather get automatically into the position (2), where > text after ❰    ❱ shall be automatically aligned in the second line to > the begin of first word in the first line. > > Position 1: > > ❰    ❱ Next step is to report the school and abuses of children' > rights to Ministry of Education. > > > Position 2: > > ❰    ❱ Next step is to report the school and abuses of children' > rights to Ministry of Education. > > I see that TAB works, the text moves to first line, though is there > any way in Emacs to automatically invoke such alignment? > It looks to me like you want a list of check boxes? If so, Org Mode will do this, and along with ~adaptive-wrap-prefix-mode~, will also soft wrap the left side automatically. Which reminds me, you did not specify if you wanted a 'hard' (inserting actual spaces/tabs) or 'soft' (display only) wrapping. Most of other solutions mentioned will give you the former. But maybe that's what you want? Cheers, TRS-80