[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding colour when font-lock in disabled
From: |
Eli Zaretskii |
Subject: |
Re: Adding colour when font-lock in disabled |
Date: |
Fri, 09 Dec 2022 16:53:46 +0200 |
> Date: Fri, 09 Dec 2022 13:04:54 +0000
> From: Heime <heimeborgia@protonmail.com>
> Cc: help-gnu-emacs@gnu.org
>
> ------- Original Message -------
> On Friday, December 9th, 2022 at 12:36 PM, Eli Zaretskii <eliz@gnu.org> wrote:
>
>
> > > Date: Fri, 09 Dec 2022 12:27:22 +0000
> > > From: Heime heimeborgia@protonmail.com
> > > Cc: help-gnu-emacs@gnu.org
> > >
> > > What if I try to do something different. Making a buffer for a package
> > > where users are not expected to change it. For instance, a package could
> > > make a named buffer that logs some operations, with certain things
> > > coloured. The faces would not change dynamically because users cannot
> > > edit the buffer text.
> >
> >
> > Then you don't need font-lock. Just place your faces after turning
> > off font-lock.
>
> So I can use any mode (e.g. text-mode, org-mode), turn off font-lock-mode and
> then simply do
>
> (insert (propertize "G" 'face '(:foreground "green")))
Yes.
- Adding colour when font-lock in disabled, Heime, 2022/12/08
- Re: Adding colour when font-lock in disabled, Heime, 2022/12/08
- Re: Adding colour when font-lock in disabled, Eli Zaretskii, 2022/12/09
- Re: Adding colour when font-lock in disabled, Heime, 2022/12/09
- Re: Adding colour when font-lock in disabled, Eli Zaretskii, 2022/12/09
- Re: Adding colour when font-lock in disabled, Heime, 2022/12/09
- Re: Adding colour when font-lock in disabled, Eli Zaretskii, 2022/12/09
- Re: Adding colour when font-lock in disabled, Heime, 2022/12/09
- Re: Adding colour when font-lock in disabled,
Eli Zaretskii <=
- Re: Adding colour when font-lock in disabled, Jean Louis, 2022/12/09
- RE: [External] : Re: Adding colour when font-lock in disabled, Drew Adams, 2022/12/09
- Re: Adding colour when font-lock in disabled, Heime, 2022/12/09
- Re: Adding colour when font-lock in disabled, Eli Zaretskii, 2022/12/10
- Re: Adding colour when font-lock in disabled, Heime, 2022/12/10
- Re: Adding colour when font-lock in disabled, Eli Zaretskii, 2022/12/10
- Re: Adding colour when font-lock in disabled, Heime, 2022/12/10
- Re: Adding colour when font-lock in disabled, Heime, 2022/12/09
- Re: Adding colour when font-lock in disabled, Eli Zaretskii, 2022/12/09
- Re: Adding colour when font-lock in disabled, Stefan Monnier, 2022/12/09