Change text-mode to text-mode-hook