Based on the source of flymd, you need to add \.txt\'
to the option flymd-markdown-file-type
as well. Use, using M-x customize-option
.
Corrected a typo with double backslashes and made it explicit how to change the option