* Re: How to automatically align to first word of previous line?
2022-03-03 8:11 How to automatically align to first word of previous line? Jean Louis
@ 2022-03-03 18:18 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-08 8:34 ` Kevin Vigouroux via Users list for the GNU Emacs text editor
` (3 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Emanuel Berg via Users list for the GNU Emacs text editor @ 2022-03-03 18:18 UTC (permalink / raw)
To: help-gnu-emacs
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?
If you align the second row manually rows after that are
aligned with `fill-paragraph'.
--
underground experts united
https://dataswamp.org/~incal
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to automatically align to first word of previous line?
2022-03-03 8:11 How to automatically align to first word of previous line? Jean Louis
2022-03-03 18:18 ` Emanuel Berg via Users list for the GNU Emacs text editor
@ 2022-03-08 8:34 ` Kevin Vigouroux via Users list for the GNU Emacs text editor
2022-03-08 8:40 ` Kevin Vigouroux via Users list for the GNU Emacs text editor
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Kevin Vigouroux via Users list for the GNU Emacs text editor @ 2022-03-08 8:34 UTC (permalink / raw)
To: help-gnu-emacs
Jean Louis <bugs@gnu.support> writes:
> I see that TAB works, the text moves to first line, though is there
> any way in Emacs to automatically invoke such alignment?
--
Best regards,
Kevin Vigouroux
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to automatically align to first word of previous line?
2022-03-03 8:11 How to automatically align to first word of previous line? Jean Louis
2022-03-03 18:18 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-03-08 8:34 ` Kevin Vigouroux via Users list for the GNU Emacs text editor
@ 2022-03-08 8:40 ` Kevin Vigouroux via Users list for the GNU Emacs text editor
2022-03-08 21:24 ` Jean Louis
2022-03-08 22:01 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-04-05 21:32 ` TRS-80
4 siblings, 1 reply; 10+ messages in thread
From: Kevin Vigouroux via Users list for the GNU Emacs text editor @ 2022-03-08 8:40 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: Jean Louis
Oops! I sent the previous message by mistake.
Jean Louis <bugs@gnu.support> writes:
> I see that TAB works, the text moves to first line, though is there
> any way in Emacs to automatically invoke such alignment?
Would Auto Fill mode be suitable?
--
Best regards,
Kevin Vigouroux
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to automatically align to first word of previous line?
2022-03-03 8:11 How to automatically align to first word of previous line? Jean Louis
` (2 preceding siblings ...)
2022-03-08 8:40 ` Kevin Vigouroux via Users list for the GNU Emacs text editor
@ 2022-03-08 22:01 ` Stefan Monnier via Users list for the GNU Emacs text editor
2022-03-09 1:41 ` Jean Louis
2022-04-05 21:32 ` TRS-80
4 siblings, 1 reply; 10+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2022-03-08 22:01 UTC (permalink / raw)
To: help-gnu-emacs
> I see that TAB works, the text moves to first line, though is there
> any way in Emacs to automatically invoke such alignment?
What major mode are you using?
Stefan
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to automatically align to first word of previous line?
2022-03-03 8:11 How to automatically align to first word of previous line? Jean Louis
` (3 preceding siblings ...)
2022-03-08 22:01 ` Stefan Monnier via Users list for the GNU Emacs text editor
@ 2022-04-05 21:32 ` TRS-80
2022-06-15 6:20 ` Jean Louis
4 siblings, 1 reply; 10+ messages in thread
From: TRS-80 @ 2022-04-05 21:32 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: How to automatically align to first word of previous line?
2022-04-05 21:32 ` TRS-80
@ 2022-06-15 6:20 ` Jean Louis
0 siblings, 0 replies; 10+ messages in thread
From: Jean Louis @ 2022-06-15 6:20 UTC (permalink / raw)
To: TRS-80; +Cc: help-gnu-emacs
* TRS-80 <lists.trs-80@isnotmyreal.name> [2022-04-06 00:33]:
> 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?
I still did not find specific solution for this.
I would like spaces in new lines to align to first word after ❰ ❱
What I need is similar to following condition:
Somewhat indented text RET
in the next line follows
aligned to the first word
❰ ❱ Then in this line I would like that ❰ ❱
is ignored so that next line get aligned
to the first word in this paragraph "Then".
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 10+ messages in thread