title: Emacs: Symbol's function definition is void: use-package
body: <p>I'm trying to configuring Emacs on Windows and there is one package "use-package" which I wanna to insert in this on my configuration, but when I press to execute on Emacs show the message "Symbol's function definition is void: use-package" </p>
  
  <pre><code>(setq inhibit-startup-message t)
  
  (require 'package)
  (setq package-enable-at-startup nil)
  (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
  (add-to-list 'package-archives '("gnu" . "https://elpa.gnu.org/packages/"))
  
  (package-initialize)
  
  
  (unless (package-installed-p 'use-package)
    (package-refresh-contents)
    (package-install 'use-package))
  </code></pre>
  
  <p>Sometimes I receive error message "use-package is unavailable."</p>
  
  <pre><code>    Debugger entered--Lisp error: (void-function package-installed-p)
      (package-installed-p (quote use-package))
      (if (package-installed-p (quote use-package)) nil (package-refresh-contents) (package-install (quote use-package)))
      eval((if (package-installed-p (quote use-package)) nil (package-refresh-contents) (package-install (quote use-package))) nil)
      elisp--eval-last-sexp(nil)
      eval-last-sexp(nil)
      funcall-interactively(eval-last-sexp nil)
      call-interactively(eval-last-sexp nil nil)
      command-execute(eval-last-sexp)
  </code></pre>