OS X 10.11 (El Capitan) introduces the ability to swipe left on conversations in Mail.app in order to send them to trash:
However, judging from the available settings, it does not seem to be possible to make the swipe action "Archive" instead of "Trash", as it works on iOS.
Is there any way to change the action from "Trash" to "Archive"?