I have found myself switching between Emacs and a shell several times today, just to check the file permissions before saving the file I have open in Emacs.
Needless to say, this is suboptimal and provides ample opportunity for improvement.
I would like to have the modeline show the permission bits, sort of like;
-:--- .netrc 0600 .... further modeline stuff ....
The closest I have seen to accomplish this goal is on the emacs-fu blog, but I would like a more generic solution than just checking whether the file is read only.
How would I achieve this?