Note: Double dasheshttps://superuser.com/questions/555628/how-to-stop-mac-to-convert-typing-double-dash-to-emdash
In earlier versions of Mac OS X, there were two separate options for smart quotes and smart dashes in the Keyboard System Preferences; however in at least versions 10.9 through 10.11, that option has been replaced by a single "Use smart quotes and dashes" preference.
Fortunately, there are still two separate preferences under the hood, and the UI checkbox toggles both of them simultaneously. You can enable or disable just one of smart quotes or smart dashes from the terminal:
# Disable just smart dashes
defaults write -g NSAutomaticDashSubstitutionEnabled 0
# Disable just smart quotes
defaults write -g NSAutomaticQuoteSubstitutionEnabled 0
# To re-enable, set either back to 1.
This is currently true as of OS X 10.11; this may change in future versions of OS X (or macOS, as it will now be called).