by jmount · 11y ago · 0 comments
(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.
(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)))
do this periodically to get your list updated w/ new packages and the latest releases.
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.