How can I bind C-x C-f to invoke projectile-find-file when inside a project, and ido-find-file when not in a project?


Write your own command that checks:

(defun maybe-projectile-find-file ()
   (if (projectile-project-p)

(global-set-key (kbd "C-x C-f") 'maybe-projectile-find-file)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.