I have the following settings in ~/.emacs:
(setq linum-relative-current-symbol "")
(linum-mode)
(linum-relative-global-mode)
(global-hl-line-mode t)
In order to supress both these features in terminal, I added the following to ~/.emacs:
(add-hook 'term-mode-hook (lambda () (linum-mode -1)))
(add-hook 'term-mode-hook (lambda () (hl-line-mode -1)))
Now when I M-x term RET /bin/zsh RET, it produces an unusable terminal. See the image below:
As you can see, it still uses line numbers and highlights the current line.
What am I doing wrong? How do I set things right?
linum-relative-current-symbol
which is not included with a base installation of Emacs, here is a link to the library that the OP is likely using: emacswiki.org/emacs/linum-relative.el It loads the built-inlinum.el
library, which the OP probably has enabled globally. The question is really about how to make the built-in globallinum-mode
buffer-local, or turn offlinum-mode
(enabled globally) forterm-mode
buffers. – lawlist Nov 23 '17 at 19:12hl-line-mode
, see also: reddit.com/r/emacs/comments/4nq20t/… – lawlist Nov 23 '17 at 19:13hl-line-mode
entitled "how to disable hl-line feature in specified mode": stackoverflow.com/questions/9990370/… – lawlist Nov 23 '17 at 19:19