The erf2-erf4 complex is a palmitoyltransferase with a major role in driving sexual development (PubMed:23843742, PubMed:16303567). Palmitoylates ras1 (PubMed:23843742). Palmitoylates isp3 (PubMed:23843742). Palmitoylates rho3 (PubMed:23843742). hexadecanoyl-CoA + L-cysteinyl-[protein] = CoA + S-hexadecanoyl-L-cysteinyl-[protein] Interacts with erf4. Highly expressed during meiosis and sporulation (at protein level). The DHHC domain is required for palmitoyltransferase activity. Autopalmitoylated. Abolishes palmitoylation of ras1 during vegetative growth (PubMed:23843742). Delays mitotic entry (PubMed:23843742). Belongs to the DHHC palmitoyltransferase family. ERF2/ZDHHC9 subfamily.