Re: Setting text direction for each line

Ali Shirvani <[email protected]> Wed, 31 Jul 2019 22:35:56 +0430
Newsgroups gmane.emacs.bidi
Message-ID <CAFQ97XH1D+81mLZV-NEOub_bGFxAyjH-BjF62VSET4tueZW1Gg@mail.gmail.com>
--===============6504198631440240261==
Content-Type: multipart/alternative; boundary="000000000000b3f32a058efdfa3e"

--000000000000b3f32a058efdfa3e
Content-Type: text/plain; charset="UTF-8"

Thanks a lot Eli, it works fine now.

On Wed, Jul 31, 2019 at 10:19 PM Eli Zaretskii <[email protected]> wrote:

> > From: Ali Shirvani <[email protected]>
> > Date: Wed, 31 Jul 2019 20:13:34 +0430
> > Cc: [email protected]
> >
> > My Emacs version is 26.2 and here is my .emcas file content:
> >
> > (setq bidi-paragraph-start-re "^")
> > (setq bidi-paragraph-separate-re "^")
> >
> > And the output is attached.
>
> These variables are buffer-local, as described in their doc strings.
> So setting them in your .emacs has no effect on the buffer where you
> afterwards type the text.
>
> You need either set the variables via "M-:" from the buffer where you
> need that, or, if you want this by default in all buffers, change the
> above settings in your .emacs to this:
>
> (setq-default bidi-paragraph-start-re "^")
> (setq-default bidi-paragraph-separate-re "^")
>
> As yet another possibility, if you want this setting only in certain
> major modes, you can use the setq forms in a mode-hook.
>

--000000000000b3f32a058efdfa3e
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks a lot Eli, it works fine now.</div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jul 31, 2019=
 at 10:19 PM Eli Zaretskii &lt;<a href=3D"mailto:[email protected]">[email protected]=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
&gt; From: Ali Shirvani &lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;<br>
&gt; Date: Wed, 31 Jul 2019 20:13:34 +0430<br>
&gt; Cc: <a href=3D"mailto:[email protected]" target=3D"_blank">emacs-bidi=
@gnu.org</a><br>
&gt; <br>
&gt; My Emacs version is 26.2 and here is my .emcas file content:<br>
&gt; <br>
&gt; (setq bidi-paragraph-start-re &quot;^&quot;)<br>
&gt; (setq bidi-paragraph-separate-re &quot;^&quot;)<br>
&gt; <br>
&gt; And the output is attached.<br>
<br>
These variables are buffer-local, as described in their doc strings.<br>
So setting them in your .emacs has no effect on the buffer where you<br>
afterwards type the text.<br>
<br>
You need either set the variables via &quot;M-:&quot; from the buffer where=
 you<br>
need that, or, if you want this by default in all buffers, change the<br>
above settings in your .emacs to this:<br>
<br>
(setq-default bidi-paragraph-start-re &quot;^&quot;)<br>
(setq-default bidi-paragraph-separate-re &quot;^&quot;)<br>
<br>
As yet another possibility, if you want this setting only in certain<br>
major modes, you can use the setq forms in a mode-hook.<br>
</blockquote></div>

--000000000000b3f32a058efdfa3e--


--===============6504198631440240261==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZW1hY3MtYmlk
aSBtYWlsaW5nIGxpc3QKZW1hY3MtYmlkaUBnbnUub3JnCmh0dHBzOi8vbGlzdHMuZ251Lm9yZy9t
YWlsbWFuL2xpc3RpbmZvL2VtYWNzLWJpZGkK

--===============6504198631440240261==--