Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Cannot disable hl-line-mode and idle-highlight-mode #134

Open
blt opened this issue Apr 20, 2012 · 2 comments
Open

Cannot disable hl-line-mode and idle-highlight-mode #134

blt opened this issue Apr 20, 2012 · 2 comments

Comments

@blt
Copy link

blt commented Apr 20, 2012

I have in my ~/.emacs

(remove-hook 'prog-mode-hook 'esk-turn-on-hl-line-mode)
(remove-hook 'prog-mode-hook 'esk-turn-on-idle-highlight-mode)  

Still, both modes are loaded even after ~/.emacs has been loaded--both by total restart of emacs and selective kill of pre reload buffers. I am using emacs 24.1.50.1.

@kroger
Copy link

kroger commented Apr 29, 2012

My guess is that your ~/.emacs file is being loaded before the hook is set.
I think that using ~/.emacs.d is preferred, so try to add these lines in ~/.emacs.d/$USER.el
(I have them and they work)

@dgutov
Copy link
Contributor

dgutov commented May 2, 2012

I have the second remove-hook call in init.el, and it works as expected.

You can either call (package-initialize) above that code, or wrap it in (eval-after-load 'starter-kit-defuns ...).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants