comparison .elisp/settings/00.bootstrap.el @ 336:ea73ef5dc38c

emacs: avoid weird package.el breakage with newish packages I've been toting around this package.el from 2009 or so, and something in the package format seems to have changed that broke me. Thanks to some related diagnostics by Lucas, I've grabbed the last package.el that worked with emacs 23 and stashed it here. This seems to work, modulo some things (notably js2-mode and smex) now seem to require emacs 24 if you install them using package.el, so this will end up being brittle on my last couple of emacs23 machines.
author Augie Fackler <raf@durin42.com>
date Thu, 29 May 2014 14:30:42 -0400
parents 4f49d70f1b69
children 7e97572ac429
comparison
equal deleted inserted replaced
335:7a736d851718 336:ea73ef5dc38c
1 ;; emacs -l .elisp/settings/00.bootstrap.el --batch -f af-bootstrap-packages 1 ;; emacs -l .elisp/settings/00.bootstrap.el --batch -f af-bootstrap-packages
2 ;; Use the above for moving into a new machine 2 ;; Use the above for moving into a new machine
3 (add-to-list 'load-path (expand-file-name "~/.elisp")) 3 (add-to-list 'load-path (expand-file-name "~/.elisp"))
4 (load "package") 4
5 ;; emacs 23 compat hack from Lucas Bergman
6 (unless (fboundp 'package-refresh-contents)
7 ;; If ELPA support isn't built in, we're in Emacs <=23. Normally, one
8 ;; would bootstrap ELPA from the source, tromey.com, but that sucks,
9 ;; because that version of package.el doesn't support multiple archives
10 ;; even in 2012. old/package.el is from http://bit.ly/pkg-el23, which is
11 ;; cited at https://github.com/technomancy/package.el as the last emacs23
12 ;; version of package.el.
13 (unless (load (expand-file-name "~/.elisp/old/package.el"))
14 (error "ELPA is not in Emacs, and local package.el failed to load.")))
15
16
5 (package-initialize) 17 (package-initialize)
6 18
7 (setq package-archives '(("durin42" . "http://durin42.com/elpa/") 19 (setq package-archives '(("durin42" . "http://durin42.com/elpa/")
8 ("marmalade" . "http://marmalade-repo.org/packages/") 20 ("marmalade" . "http://marmalade-repo.org/packages/")
9 ("melpa" . "http://melpa.milkbox.net/packages/") 21 ("melpa" . "http://melpa.milkbox.net/packages/")
15 (dolist (pack '(diff-mode- 27 (dolist (pack '(diff-mode-
16 doctest-mode 28 doctest-mode
17 http-twiddle 29 http-twiddle
18 ipython 30 ipython
19 nose 31 nose
32
20 ;; disabled until I don't need a modified version 33 ;; disabled until I don't need a modified version
21 ;; textmate 34 ;; textmate
35
22 iedit 36 iedit
37
23 ;; from elpa 38 ;; from elpa
24 js2-mode 39 js2-mode
25 magit 40 magit
26 markdown-mode 41 markdown-mode
27 paredit 42 paredit