Skip to content

Instantly share code, notes, and snippets.

@JoshTGreenwood
Created December 1, 2015 22:20
Show Gist options
  • 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