Distinct regions specify the nuclear membrane targeting of emerin, the responsible protein for Emery-Dreifuss muscular dystrophy.