I have the following settings in ~/.emacs:

(setq linum-relative-current-symbol "")
(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:

terminal image

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.