title: Why Emacs project C-c p is undefined?
body: <p>I am new to Emacs. I have installed Projectile. </p>
  
  <p>When I do <code>C-c p</code>, it says:</p>
  
  <pre><code>C-c p is undefined
  </code></pre>
  
  <p>Wondering what is wrong?</p>
  
  <p>Following is my <code>~/.emacs</code> file.</p>
  
  <pre><code>(require 'package)
  
  (add-to-list 'package-archives
                        '("melpa" . "http://melpa.milkbox.net/packages/") t)
  (package-initialize)
  
  (defvar required-packages
    '(
      projectile
      ) "a list of packages to ensure are installed at launch.")
  
  (require 'cl)
  
                      ; method to check if all packages are installed
  (defun packages-installed-p ()
    (loop for p in required-packages
      when (not (package-installed-p p)) do (return nil)
      finally (return t)))
  
                      ; if not all packages are installed, check one by one and install the missing ones.
  (unless (packages-installed-p)
                      ; check for new packages (package versions)
    (message "%s" "Emacs is now refreshing its package database...")
    (package-refresh-contents)
    (message "%s" " done.")
                      ; install the missing packages
    (dolist (p required-packages)
      (when (not (package-installed-p p))
        (package-install p))))
  
  (require 'projectile)
  (projectile-global-mode)
  </code></pre>
  
  <p><strong>Edit</strong></p>
  
  <p>My .projectile file</p>
  
  <pre><code>-/venv
  -*.pyc
  -*.pyc~
  -.git
  -.gitignore
  -.DS_Store
  </code></pre>
  
  <p><strong>Edit 2</strong></p>
  
  <p><code>C-h v</code> output for <code>projectile-keymap-prefix</code> as below:</p>
  
  <pre><code>projectile-keymap-prefix is a variable defined in `projectile.el'.
  Its value is "^Cp"
  
  Documentation:
  Projectile keymap prefix.
  
  You can customize this variable
  </code></pre>
  
  <p><strong>Edit 3</strong></p>
  
  <p>I am using OS X 10.10.4. I start emacs from command line <code>$emacs</code>. I have installed Emacs using following commands:</p>
  
  <pre><code>brew install emacs --with-cocoa 
  </code></pre>
  
  <p>And, very first time (when I launch emacs). If do <code>M-x</code>, I don't get <code>project-switch-project</code>, rather I get <code>project-switch-to-buffer</code>. After switching buffer, I can switch project.</p>