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

107 lines
2.5 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/")
2012-12-18 05:48:12 +00:00
("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
buffer-move
color-moccur
2013-04-25 15:58:12 +00:00
dash
2013-02-20 00:56:52 +00:00
deft
deferred
diminish
2013-03-19 03:23:54 +00:00
dired+
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
expand-region
fill-column-indicator
find-file-in-project
flycheck
flycheck-color-mode-line
2013-04-13 22:11:24 +00:00
flymake
flymake-cursor
flymake-easy
flymake-haskell-multi
fuzzy
2013-01-14 04:12:05 +00:00
ghc
2013-04-22 00:59:26 +00:00
google-translate
2013-01-14 04:12:05 +00:00
haskell-mode
2013-03-14 04:40:23 +00:00
helm
helm-c-yasnippet
helm-projectile
htmlize
jedi
json-mode
2012-12-18 05:48:12 +00:00
key-chord
2013-03-13 04:11:01 +00:00
less-css-mode
magit
markdown-mode
2013-01-04 16:33:17 +00:00
move-text
multi-term
nose
2013-01-03 06:53:00 +00:00
org
2013-04-29 19:47:31 +00:00
p4
2013-04-23 02:14:23 +00:00
page-break-lines
paredit
2012-12-18 05:48:12 +00:00
powerline
popup
popwin
2013-01-12 16:58:50 +00:00
projectile
puppet-mode
python
2013-03-15 03:04:57 +00:00
quickrun
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
ruby-end
2013-04-22 20:33:10 +00:00
ruby-mode
ruby-test-mode
2013-04-25 15:58:12 +00:00
s
smart-operator
;; sr-speedbar
2013-04-20 21:06:32 +00:00
stripe-buffer
subword
2012-12-18 05:48:12 +00:00
surround
2013-03-13 04:11:01 +00:00
tagedit
2013-01-05 22:15:42 +00:00
twittering-mode
2013-03-13 04:11:01 +00:00
wdired
2013-02-20 19:04:09 +00:00
window-layout
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)