An antimicrobial peptide with an aggregation-induced emission (AIE) luminogen for studying bacterial membrane interactions and antibacterial actions.