0

Every time I open a new file in emacs, hl-line-mode is enabled. I have put

(global-hl-line-mode -1)
(hl-line-mode -1)

in my init.el, but to no avail. What am I doing wrong???

MathManM
  • 171
  • 3
  • 4
    Find out what is turning the mode on. If you don't see the same behavior when starting Emacs without an init file (`emacs -Q`) then recursively bisect your init file to find out where you are turning it on. Look after you turn it off in your init file. – Drew Feb 16 '17 at 04:02
  • The commands given above are the last two in my init.el file. – MathManM Feb 16 '17 at 04:34
  • I have also verified that this file is being used by emacs. – MathManM Feb 16 '17 at 04:41
  • This is infuriating...I want to love emacs so much, but right now it's really hard. – MathManM Feb 16 '17 at 04:49
  • 4
    Can you turn it of after your emacs is loaded? Aka eval `M-:` `(global-hl-line-mode -1)` and does this turn the hightlight off? I gues some mode has this set as a hook when it is being loaded. So the question is which packages do you have installed, and checking which ones might do it. – Sideshowcoder Feb 16 '17 at 10:08
  • 1
    If those are the last two lines in your init, then something earlier in the file is causing the problem. You really do need to follow @Drew s advice to find out what the source is. [more details on troubleshooting](http://emacs.stackexchange.com/questions/28429/how-do-i-troubleshoot-emacs-problems) – Tyler Feb 16 '17 at 16:28
  • Took the easy way out and changed the highlighting color to coincide with my background...lame. – MathManM Feb 17 '17 at 19:59
  • Incidentally, I am using Prelude emacs https://github.com/bbatsov/prelude#getting-to-know-prelude – MathManM Feb 21 '17 at 03:10

0 Answers0