On 12/12/2011 01:56 PM, Yann Hodique wrote: >>>>>> "Andrea" == Andrea Crotti <[email protected]> writes: >> I would like to load magit with autoload, but at the moment I don't because >> I don't >> find an equivalent construct for magit-svn. >> When working on a git-svn repository, magit still works fine, but if I don't >> load manually >> magit-svn then I can't really do much. >> Is there a way to make it detect and load automatically magit-svn when it >> detects it? >> (A simple regexp matching in .git/config would do I think). > Hi Andrea, > > I think you're looking for something like > https://github.com/magit/magit/pull/296 which something I've been > working on for some time. > > Once this is merged, you'll be able to autoload `magit-svn-mode' and > (for example) to load it in a specific repository by running: > > $ git config --add magit.extension svn > > btw I'm looking for feedback on this approach :) > > In the current state of master, there's not much you can do, except > something like > > --8<---------------cut here---------------start------------->8--- > (autoload 'magit "magit") > > (eval-after-load 'magit > '(require 'magit-svn)) > --8<---------------cut here---------------end--------------->8--- > > but this is really only half a solution. > > Hope this helps, > > Yann. >
That was also my idea, but I'm actually getting "Symbol's value as variable is void: magit-svn" I have simply this configuration and magit is also in the path, any idea? (autoload 'magit-status "magit" "magit" t) (autoload 'magit "magit") ;TODO: check if this is actually really working (eval-after-load 'magit (require 'magit-svn))
