Add hook for customizing text-mode