init.el file I have the following line:
(global-linum-mode 1). I want
linum-mode enabled for every file, but not for other buffers. I.e. Is there a way to enable linum mode globally for all buffers with an extension?
Frequently my buffer list looks like
file.js js2-mode init.el Emacs-Lisp ansi-term Term:
In this case I would like to have it enabled for everything but
ansi-term. Is this possible?
Furthermode, just for ansi term I tried the following:
(add-hook 'term-mode-hook (lambda () (linum-mode -1)))
But even that did not work. If someone could tell me why that would be great but enabling it just for files would be ideal.