[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14957: 24.3.50; Flyspell language visible in mode line
From: |
Lars Ingebrigtsen |
Subject: |
bug#14957: 24.3.50; Flyspell language visible in mode line |
Date: |
Fri, 18 Sep 2020 16:19:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> writes:
> You have to modify the default value, like this:
>
> (setq-default mode-line-format
> (cons
> '(:eval
> (let ((dict (and (featurep 'ispell)
> (or ispell-local-dictionary
> ispell-dictionary))))
> (and dict
> (concat " ["
> (propertize (substring dict 0 2)
> 'face 'mode-line-highlight)
> "]"))))
> (default-value 'mode-line-format)))
Everybody seemed to be in violent agreement about making Flyspell (and
friends) display the language currently in use (and I agree, too), but
the discussion petered out when the discussion turned to where to put
this.
Perhaps putting it in the Flyspell lighter? So it'd be
... (Text Fly[br] Fill)
or something?
I'm not sure whether that's possible with the mode line machinery,
though -- we want clicking on "Fly" to switch the mode off, but clicking
on "[br]" to allow changing the dictionary.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#14957: 24.3.50; Flyspell language visible in mode line,
Lars Ingebrigtsen <=
- bug#14957: 24.3.50; Flyspell language visible in mode line, Michael Heerdegen, 2020/09/18
- bug#14957: 24.3.50; Flyspell language visible in mode line, Lars Ingebrigtsen, 2020/09/18
- bug#14957: 24.3.50; Flyspell language visible in mode line, Eli Zaretskii, 2020/09/18
- bug#14957: 24.3.50; Flyspell language visible in mode line, Lars Ingebrigtsen, 2020/09/19
- bug#14957: 24.3.50; Flyspell language visible in mode line, Eli Zaretskii, 2020/09/19
- bug#14957: 24.3.50; Flyspell language visible in mode line, Michael Heerdegen, 2020/09/19
- bug#14957: 24.3.50; Flyspell language visible in mode line, Lars Ingebrigtsen, 2020/09/19
- bug#14957: 24.3.50; Flyspell language visible in mode line, Michael Heerdegen, 2020/09/18