Created
April 9, 2013 18:47
-
-
Save tonini/5348282 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun tonini-load-cabbage-project-settings () | |
(let ((project-setting-file (concat (cabbage-project-root) ".cabbage"))) | |
(when (file-readable-p project-setting-file) | |
(load project-setting-file)))) | |
(add-hook 'cabbage-after-project-hook 'tonini-load-cabbage-project-settings) | |
;; Run hook | |
(defun cabbage-project-ido-find-project () | |
(interactive) | |
(let ((project-name (ido-completing-read "Project: " | |
(directory-files cabbage-project-location nil "^[^.]")))) | |
(cabbage-persp project-name) | |
(let ((default-directory (concat cabbage-project-location project-name))) | |
(call-interactively cabbage-project-find-file-function) | |
(run-hooks 'cabbage-after-project-hook)))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment