Display the wireless status on the emacs mode-line

I found this code 1 to display the wireless status in the modeline. A first attempt led to nothing i.e. nothing was shown in my modeline. I had to modify the regex in order to match the output of /proc/net/wireless : diff --git a/wireless.el b/wireless.el index 55ec7fc..e08f864 100644 --- a/wireless.el +++ b/wireless.el @@ -55,7 +55,7 @@ :group 'wireless) (defcustom wireless-procfile-regexp - "^[…