mode-line: provide a widget to show count of buffers currently loading
commit03be7e88ac6275e42526ae581d1d621d8ffea5f7
authorDavid Kettler <kettler@internode.on.net>
Fri, 16 Jan 2009 06:43:33 +0000 (16 17:13 +1030)
committerDavid Kettler <kettler@internode.on.net>
Sun, 8 Feb 2009 11:13:58 +0000 (8 21:43 +1030)
treea8a760e603ed68b472486a38f5ff5e843b83bfcf
parentbd49ba6da8f3b4635932b56be1c48df488c5a23f
mode-line: provide a widget to show count of buffers currently loading

This provides a count like (2 loading) in the mode-line.  When no
buffers are being loaded, the widget is blank.  This is useful as a
notifier when a buffer is visiting a web page that loads slowly.

I enable this and the buffer count with:
add_hook("mode_line_hook", mode_line_adder(loading_count_widget), true);
add_hook("mode_line_hook", mode_line_adder(buffer_count_widget), true);
modules/mode-line.js