emacs-bidi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [emacs-bidi] Setting text direction for each line


From: Ali Shirvani
Subject: Re: [emacs-bidi] Setting text direction for each line
Date: Wed, 31 Jul 2019 22:35:56 +0430

Thanks a lot Eli, it works fine now.

On Wed, Jul 31, 2019 at 10:19 PM Eli Zaretskii <address@hidden> wrote:
> From: Ali Shirvani <address@hidden>
> Date: Wed, 31 Jul 2019 20:13:34 +0430
> Cc: address@hidden
>
> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]