auto-fill in text and markdown mode