Skip to content

Instantly share code, notes, and snippets.

@JoshTGreenwood
Created December 1, 2015 22:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshTGreenwood/443253f42fb80455792f to your computer and use it in GitHub Desktop.
Save JoshTGreenwood/443253f42fb80455792f to your computer and use it in GitHub Desktop.
Automatically add magit cloned repos to the projectile project list
(defun add-project-to-projectile-known-projects (_ directory)
(projectile-add-known-project directory))
(advice-add 'magit-clone :after 'add-project-to-projectile-known-projects)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment