Skip to content

Instantly share code, notes, and snippets.

@matthew-ball
Created June 2, 2012 01:46
Show Gist options
  • Save matthew-ball/2856117 to your computer and use it in GitHub Desktop.
Save matthew-ball/2856117 to your computer and use it in GitHub Desktop.
(let ((default-directory (concat (expand-file-name user-emacs-directory) "elpa/")))
(if (file-exists-p default-directory) ;; NOTE: if the directory exists ...
(normal-top-level-add-subdirs-to-load-path) ;; NOTE: recursively add sub-directories to `load-path' variable
(message "TODO: create directory!"))) ;; NOTE: ... else create it ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment