#defcomp bindkey if [[ "$words[2]" = -*[DAN]* || "$words[CURRENT-1] = -*M ]]; then compgen -s '$(bindkey -l)' else compgen -b fi