[Aquamacs-devel] changing the mode-line background color on the fly?
30 views
Skip to first unread message
Filippo A. Salustri
unread,
Jul 12, 2012, 10:53:19 AM7/12/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Aquamacs Developers
Hi all, I'd really like to be able to change the background color of the mode-line on the fly. So, I'd like it to be one color if the buffer is read-only, another if the buffer is modified, and a third color otherwise.
I've been playing with mode-line-format. I had it pretty much working with the following fragment (:eval (cond (buffer-read-only (fas-set-modeline-readonly)) ((buffer-modified-p) (fas-set-modeline-modified)) (t (fas-set-modeline-default))))
where the final blank string is what's expected for each condition in the mode-line-format clause above.
As I said, it works, but it seems to build up quite a load on my laptop. I didn't check the actual memory usage, but aquamacs seem to slow down to a crawl within 30 min of starting it. If I quit and restart, it's fine again, but starts slowing down.
I'm running aquamacs 2.4.
Can anyone advise me on how I can do this without running my MBP into the ground?