packages variables that have list of github users and package names.
(defvar packages '('("auto-complete" . "auto-complete") ("defunkt" . "markdown-mode")))
I want to
git clone if the file is not exist yet.
(defun git-clone (author name) (let* ((repo-url (concat "email@example.com:" author "/" name ".git"))) (print repo-url) (unless (file-exists-p (concat "~/.emacs.d/git/" name)) (shell-command (concat "git clone " repo-url " ~/.emacs.d/git/" name)))))
And I want to apply
git-clone to all packages variable to
packages list. But I could not figure out how to apply with arguments.
; This obviously doesn't work (mapcar `git-clone `packages)