help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: mode line construct question


From: Joost Kremers
Subject: Re: mode line construct question
Date: Wed, 28 Aug 2024 11:30:11 +0200

On Wed, Aug 28 2024, Joost Kremers wrote:
> I'm trying to prettify my mode line a bit, but am running into a strange
> issue.

And of course, less than five minutes after sending my message, I find the
solution myself...

As the doc string for `mode-line-format` says:

,----
| [...] unless the symbol has a non-nil
|  ‘risky-local-variable’ property, all properties in any strings, as
|  well as all :eval and :propertize forms in the value, are ignored.
`----

So a simple

```
(put 'pyvenv-mode-line-indicator 'risky-local-variable t)
```

solves my problem...


-- 
Joost Kremers
Life has its moments



reply via email to

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