indent fix up
add text editing preference for auto pair functionality
fix #3