in my init.el
file I have the following:
(global-linum-mode 1)
(add-hook 'term-mode-hook (lambda () (linum-mode)))
However, when I enter ansi-term-mode
linum mode is still on.
I have also tried
(add-hook 'ansi-term-mode-hook (lambda () (linum-mode)))
and
(add-hook 'term-mode-hook (lambda () (linum-mode nil)))
Does anyone have any idea how to turn off linum mode for ansi-term-mode only?
(linum-mode -1)
? – YoungFrog Oct 13 '15 at 21:38(global-linum-mode 1) (add-hook 'term-mode-hook (lambda () (linum-mode -1)))
, then restart emacs to see the effect. Note the -1. – Kaushal Modi Jan 11 '16 at 16:02