The adenosine dimethyltransferase KsgA recognizes a specific conformational state of the 30S ribosomal subunit.