Skip to content
Browse files

Remove ":require magit-wip" from define-minor-mode

It can cause problems if you load your custom file before loading
magit, which is quite likely. I think the :require option is really
only for core Emacs features.

As a workaround, I call the setup function when the file is loaded,
which will do the setup if the mode variable is true.
  • Loading branch information...
1 parent fd09100 commit e85444111ea04f46bd31b427c7f4cbea9eb369cc @DarwinAwardWinner DarwinAwardWinner committed
Showing with 2 additions and 1 deletion.
  1. +2 −1 magit-wip.el
View
3 magit-wip.el
@@ -39,7 +39,6 @@ Currently, this will just give git-wip refs a special appearance
in Magit log buffers."
:group 'magit
:global t
- :require 'magit-wip
(magit-wip-setup-namespaces))
(defface magit-log-head-label-wip
@@ -70,4 +69,6 @@ in Magit log buffers."
(mapc (if magit-wip-mode adder remover)
magit-wip-refs-namespaces)))
+(magit-wip-setup-namespaces)
+
(provide 'magit-wip)

0 comments on commit e854441

Please sign in to comment.
Something went wrong with that request. Please try again.