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

This is my ~/.emacs file.

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

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, privacy policy and cookie policy

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