Mac OS X

Configure TextEdit To Save Files As Plain Text

Set plain text in TextEdit as the default format to save files in using the defaults command to write the RichText key into com.apple.TextEdit as an integer of 0, as follows:

defaults write com.apple.TextEdit RichText -int 0

To remove the key:

defaults delete com.apple.TextEdit RichText