From: Joost Kremers <joostkremers@fastmail.fm>
To: gnu-emacs-help@gnu.org
Subject: Re: mode line construct question
Date: Wed, 28 Aug 2024 11:30:11 +0200 [thread overview]
Message-ID: <86y14h3sgs.fsf@fastmail.fm> (raw)
In-Reply-To: <86frqp57k4.fsf@fastmail.fm> (Joost Kremers's message of "Wed, 28 Aug 2024 11:18:51 +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
prev parent reply other threads:[~2024-08-28 9:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-28 9:18 mode line construct question Joost Kremers
2024-08-28 9:30 ` Joost Kremers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86y14h3sgs.fsf@fastmail.fm \
--to=joostkremers@fastmail.fm \
--cc=gnu-emacs-help@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.