[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rainbow-delimiters highlighting { and } for tex and latex
From: |
wilnerthomas |
Subject: |
Re: Rainbow-delimiters highlighting { and } for tex and latex |
Date: |
Wed, 7 Sep 2022 17:29:27 +0200 (CEST) |
Sep 7, 2022, 15:16 by tomas@tuxteam.de:
> On Wed, Sep 07, 2022 at 05:03:50PM +0200, wilnerthomas--- via Users list for
> the GNU Emacs text editor wrote:
>
>>
>> Sep 7, 2022, 13:34 by monnier@iro.umontreal.ca:
>>
>> > wilnerthomas@tutanota.com [2022-09-07 15:23:57] wrote:
>> >
>> >> Sep 7, 2022, 13:14 by help-gnu-emacs@gnu.org:
>> >>
>> >>>> Stefan, you are right. But it handles only lisp commands, colouring
>> >>>> initial "(" and final ")". But
>> >>>> not for highlighting "{" and "}" for "tex" and "latex".
>> >>>>
>> >>>
>> >>> That is not my experience (from a few seconds before sending my
>> >>> previous message).
>> >>>
>> >> What do I have to do exactly?
>> >>
>> >
>> > I don't know. For me it just works (I don't use rainbow-delimiters,
>> > I simply turned it on to double-check my intuition before replying to
>> > you, and it worked for (..), {..} and [..] in a `latex-mode` buffer).
>> >
>>
>> What version are you using? Do you know where in the code the checking for
>> "{ }" is performed?
>>
>> I see
>>
>> rainbow-delimiters--propertize
>>
>> which only has
>>
>> (while (> end (progn (skip-syntax-forward "^()" end)
>>
>
> This is the syntax category. You can look that up in the
> docs. If your buffer has the correct mode, things will
> work. In your case, the mode should be latex-mode.
>
> Please, read the docs.
>
I am using the following function
(defun lex-rainbow-delimiters ()
"Configuration."
(add-to-list 'load-path
"~/bin/contrib/rainbow-delimiters")
(require 'rainbow-delimiters)
(add-hook 'tex-mode-hook #'rainbow-delimiters-mode)
(add-hook 'latex-mode-hook #'rainbow-delimiters-mode)
(message "+ rainbow-delimiters"))
This does not work. I first have to load the latex file, then call
"M-x rainbow-delimiters-mode" to take effect.
- Re: Rainbow-delimiters highlighting { and } for tex and latex, (continued)
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Alessandro Bertulli, 2022/09/08
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Christopher Dimech, 2022/09/08
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Alessandro Bertulli, 2022/09/08
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Arash Esbati, 2022/09/09
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Christopher Dimech, 2022/09/09
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Arash Esbati, 2022/09/09
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Christopher Dimech, 2022/09/09
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Christopher Dimech, 2022/09/09
- Message not available
- Re: Rainbow-delimiters highlighting { and } for tex and latex, wilnerthomas, 2022/09/07
- Re: Rainbow-delimiters highlighting { and } for tex and latex, tomas, 2022/09/07
- Re: Rainbow-delimiters highlighting { and } for tex and latex,
wilnerthomas <=
- Re: Rainbow-delimiters highlighting { and } for tex and latex, tomas, 2022/09/07
- Re: Rainbow-delimiters highlighting { and } for tex and latex, Stefan Monnier, 2022/09/07
- Message not available
- Re: Rainbow-delimiters highlighting { and } for tex and latex, wilnerthomas, 2022/09/08