0

So I'm following this guide and when I go to M-x package-list-packages there is no auto-complete in the directory.

; start pacakage.el with emacs
(require 'package)
; add Melpa to repository list
(add-to-list 'package-archives '("melpa", "http://melpa.milkbox.net/packages/"))
; initialise package.el
(package-initialize)

This is my ~/.emacs file.

2
  • 1
    Should be '("melpa" . "http://melpa.."), dot, not comma
    – npostavs
    Commented Jun 29, 2016 at 11:48
  • 1
    @npostavs: Please post that as an answer. OP: Please consider accepting that answer.
    – Drew
    Commented Jun 29, 2016 at 14:45

1 Answer 1

0

Elements of package-archives should be conses, which can be written as dotted pairs:

; add Melpa to repository list
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))

Commas are never used in lisp code except when paired with backquote.

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.