0

Every time I open Magit status buffer I need to press ?. How can I make it so it opens automatically?

doing this didn't help

(add-hook 'magit-mode 'magit-dispatch-popup)  
4

There's no hook variable named magit-mode. You were looking for magit-mode-hook (mode hooks are always named MODENAME-hook). That's not the solution here, though.

I can only imagine this very quickly going from "I have to press ? every time to get the help" to "I have to press q every time to dismiss the help", however you can do what you've asked for by defining some after-advice for magit-status:

(defadvice magit-status (after my-magit-status-dispatch-popup)
  (magit-dispatch-popup))
(ad-activate 'magit-status)

n.b. That won't trigger for anything other than calling magit-status, so refreshing the status buffer (which calls magit-refresh) won't do it (which I think is a good thing).

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.