all repos — nixfiles @ 864f5981c34cddd73fdbf6162be0a813b9c81cf6

System and user configuration, managed by nix and home-manager

Emacs: Make open-subfolder-project require match
Alan Pearce alan@alanpearce.co.uk
Fri, 04 Jul 2014 22:36:37 +0100
commit

864f5981c34cddd73fdbf6162be0a813b9c81cf6

parent

bdeabfbb3bb204b641e38c9ce59e7bfa6374945d

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -656,7 +656,8 @@ (ap/-add-known-subfolder-projects (ido-read-directory-name "Add projects under: "))) 
             (defun ap/open-subfolder-project (from-dir &optional arg)
               (let ((project-dir (helm-comp-read "Open project: "
-                                                 (ap/subfolder-projects from-dir))))
+                                                 (ap/subfolder-projects from-dir)
+                                                 :must-match t)))
                 (projectile-switch-project-by-name (expand-file-name project-dir from-dir) arg)))
 
             (defun ap/open-work-project (&optional arg)