I have global-hl-line-mode setup in my init file:
(use-package hl-line
:init (global-hl-line-mode 1))
Is it possible to disable it when I am in eshell and ansi-term?
I tried adding a hook like this:
(add-hook 'eshell-mode-hook (hl-line-mode -1))
But it didn't work.