While configuring powerline, I use my own format for the mode-line. I now want to apply a different face to the battery load string, depending on the battery status (dis/charging). However, when I compute the charging status within my
mode-line-format construct, Emacs gets really slow and I can't mark region with shift + arrow anymore.
You can see the mode-line definition in my configuration that I keep on Bitbucket: init-mode-line.el:102.
The idea behind it was to have a boolean describing the battery status, and use it in the manner of
active, that I already use.
Here is the output of