I currently have the hook below for displaying tabs when in text mode:
(add-hook 'text-mode-hook (lambda () (standard-display-ascii ?\t "!---")))
I only want that setting to apply in text mode.
The problem: Once I open a text file, the above setting will be set for all subsequent buffers that I open. That is not the desired outcome. How can I apply a setting to only one mode?