I did this a long time ago, please check it out. sorry if I messed up the code but I think its worth checking.

For example instead of |defun              l| you can see the actual
flags of the symbols like: |defun       -f---m--| in the completion
menu.