I'm using Emacs 24.4.1 from Debian unstable and have added the lines from question "How do I switch buffers quickly?". However this results in an error message and I found no way to resolve it.

I can reproduce it by adding the following line into the *scratch* buffer:

(use-package ido-mode)

When I press C-j I get the following message:

Debugger entered--Lisp error: (void-function use-package)
  (use-package ido-mode)
  eval((use-package ido-mode) nil)
  popup-menu((keymap (new-file menu-item "Visit New File..." find-file :enable (menu-bar-non-minibuffer-window-p) :help "Specify a new file's name, to edit th$
  call-interactively(menu-bar-open nil nil)

Why occurs this message and what should I do to get

  • I've edited your referenced answer to now show the same implementation without having to install use-package. I'd still recommend installing that package once you understand what that does. Commented Oct 30, 2014 at 11:05

1 Answer 1


use-package is not part of standard Emacs. It's an extension you can install via the package manager from Melpa or download direct and as such you will need to:

(require 'use-package)

before you can use it to manage you package loads.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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