2

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)
  eval-last-sexp-1(t)
  eval-last-sexp(t)
  eval-print-last-sexp(nil)
  call-interactively(eval-print-last-sexp)
  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$
  menu-bar-open()
  call-interactively(menu-bar-open nil nil)
  command-execute(menu-bar-open)

Why occurs this message and what should I do to get

1
  • 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

9

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.