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...
DarwinAwardWinner committed Jan 14, 2012
1 parent fd09100 commit e85444111ea04f46bd31b427c7f4cbea9eb369cc
Showing with 2 additions and 1 deletion.
  1. +2 −1 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
(defface magit-log-head-label-wip
@@ -70,4 +69,6 @@ in Magit log buffers."
(mapc (if magit-wip-mode adder remover)
(provide 'magit-wip)

0 comments on commit e854441

Please sign in to comment.