Disable Command-M to minimize window
You can disable it by editing ~/Library/Preferences/.GlobalPreferences.plist:

defaults write -g NSUserKeyEquivalents -dict-add 'Minimize' '\0'


To apply the changes you have to reopen applications. If the shortcut was assigned to nil, pressing L would trigger it in Audacity.