>>>>> "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. -- Like the knowledge of your own being, the sietch forms a firm base from which you move out into the world and into the universe. -- Fremen Teaching
