Fork me on GitHub
#emacs
<
2018-03-20
>
rymndhng17:03:43

I'm following magit's suggestion for removing this hook to increase perf (because I have a lot of hooks):

(remove-hook 'magit-refs-sections-hook 'magit-insert-tags)
what i'm noticing is that this sets all the hooks to nil, rather than just the single function. Anyone know what's up with that? If i comment this line out, all the hooks are present

ag18:03:46

I just did (remove-hook 'magit-refs-sections-hook 'magit-insert-tags) and it removed just that...

ag18:03:53

¯\(ツ)

rymndhng18:03:13

yeah, it does work fine, forgot to add: it becomes nil when i put that in my config when emacs starts up (I am using spacemacs 😕 )

ag18:03:11

do it in (with-eval-after-load 'magit block

rymndhng23:03:12

hmm i tried that as well, i wonder if there's some other plugin doin weird things :thinking_face: , thanks for your help though. i worked around it by adding the hooks back 😢