So one of the new features in El Capitan is swipe to delete in the Mail app. But does anyone know if there is a setting to swipe to archive. I feel like this should be an option but can't find it anywhere.
Go to Preferences > Accounts > [Select your account] > Behaviors tab. Uncheck "Move deleted messages to the Trash mailbox". Now when you do the delete gesture it should archive instead of delete.