Commits

Mike Steder committed ec6ac45

Changed project root code to handle multiple possible root files

  • Participants
  • Parent commits f4bf9ec

Comments (0)

Files changed (1)

emacs.d/msproject.el

 
 (defvar msproject-root-files
   '("tconsole.py"
+    "setup.py"
+    "manage.py"
     )
   "File(s) that identify the project rool"
   )
 ;;   - arbitrary twisted project: twisted (twisted plugin directory?)
 
 (defun msproject-project-root-helper (filename remaining)
-  (locate-dominating-file (if buffer-file-name buffer-file-name ".") filename)
-  )
+  (delq nil (locate-dominating-file (if buffer-file-name buffer-file-name ".") filename)))
 
 (defun msproject-project-root ()
   (let (root)