Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Anyone able to help me out here? How do you get it to install? I tried the Melpa instructions and added the following to my .emacs:

  (require 'package) ;; You might already have this line
  (add-to-list 'package-archives
               '("melpa" . "http://melpa.org/packages/"))
  (when (< emacs-major-version 24)
    ;; For important compatibility libraries like cl-lib
    (add-to-list 'package-archives '("gnu" .   "http://elpa.gnu.org/packages/")))
  (package-initialize) ;; You might already have this line
I bounced emacs, it seemed to come back up okay. But (emacs 24.5.1 OSX) when I type "M-x package-install" it claims magit [No Match]

I use emacs- but I don't tend to customize it much.



The following works pretty well.

(defvar packages '(pkg1 pkg2 magit))

(require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)

(package-initialize) (package-refresh-contents)

(dolist (p packages) (when (not (package-installed-p p)) (package-install p)))


Try "M-x package-list-packages" to see a list and then find it. If it's not there then your package setup is incorrect.


That did it, thank you.


M-x package-refresh-contents

do this periodically to get your list updated w/ new packages and the latest releases.


Emacs is an awesome tool, but vanilla emacs is only ok.

I highly recommend that you take a couple of days or so and try playing around with packages that apply to your use. That's where it really shines.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: