This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/packages.el

83 lines
2.2 KiB
EmacsLisp
Raw Normal View History

2012-12-18 05:48:12 +00:00
(require 'package)
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.milkbox.net/packages/")
("technomancy" . "http://repo.technomancy.us/emacs/")))
(package-initialize)
(defvar syl:packages
2012-12-18 05:48:12 +00:00
'(
ace-jump-mode
auto-complete
2013-01-24 01:03:18 +00:00
auto-dictionary
autopair
color-moccur
deferred
diminish
elisp-slime-nav
epc
2013-01-04 21:20:15 +00:00
erc
2012-12-18 05:48:12 +00:00
erlang
evil
2013-01-07 06:51:44 +00:00
evil-leader
exec-path-from-shell
expand-region
2012-12-18 05:48:12 +00:00
fill-column-indicator
find-file-in-project
2013-01-04 16:33:17 +00:00
fold-this
fuzzy
2013-01-14 04:12:05 +00:00
ghc
haskell-mode
ido-ubiquitous
jedi
2012-12-18 05:48:12 +00:00
key-chord
magit
2013-01-04 16:33:17 +00:00
move-text
;; multiple-cursors
multi-term
nose
2013-01-03 06:53:00 +00:00
org
2012-12-18 22:24:55 +00:00
p4
2013-02-06 15:43:23 +00:00
;; paredit
2012-12-18 05:48:12 +00:00
powerline
popup
2013-01-12 16:58:50 +00:00
projectile
puppet-mode
python
2012-12-18 05:48:12 +00:00
rainbow-delimiters
2013-01-28 17:29:17 +00:00
recentf
2013-01-16 13:06:57 +00:00
rfringe
smart-operator
smex
2012-12-18 05:48:12 +00:00
solarized-theme
2013-01-05 20:21:08 +00:00
sr-speedbar
2012-12-18 05:48:12 +00:00
surround
2013-01-05 22:15:42 +00:00
twittering-mode
yasnippet
2012-12-18 05:48:12 +00:00
))
;;; install missing packages
(let ((not-installed (remove-if 'package-installed-p syl:packages)))
2012-12-18 05:48:12 +00:00
(if not-installed
(if (y-or-n-p (format "there are %d packages to be installed. install them? " (length not-installed)))
(progn (package-refresh-contents)
(dolist (package syl:packages)
2012-12-18 05:48:12 +00:00
(when (not (package-installed-p package))
(package-install package)))))))
;;; initialize packages
2013-01-06 07:38:25 +00:00
(setq syl:package-init-dir (concat user-emacs-directory "init-package/"))
(message (format "initializing packages out of %s" syl:package-init-dir))
2012-12-18 05:48:12 +00:00
(dolist (package (append (mapcar 'car package--builtins) package-activated-list))
2013-01-06 07:38:25 +00:00
(let* ((initfile (concat syl:package-init-dir (format "init-%s.el" package))))
2012-12-18 05:48:12 +00:00
(if (and (package-installed-p package)
(file-exists-p initfile))
(progn (load initfile)
(message (format "loaded %s" initfile))))))
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize))
(provide 'packages)