spacemacs/packages.el

115 lines
2.7 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/")
2013-06-04 21:09:53 +00:00
("melpa" . "http://melpa.milkbox.net/packages/")))
;; ("technomancy" . "http://repo.technomancy.us/emacs/")
2012-12-18 05:48:12 +00:00
(package-initialize)
(defvar syl:packages
2012-12-18 05:48:12 +00:00
'(
ace-jump-mode
auto-complete
2013-09-18 03:20:11 +00:00
auto-complete-clang
2013-01-24 01:03:18 +00:00
auto-dictionary
buffer-move
2013-09-17 05:04:34 +00:00
cc-mode
2013-05-22 15:37:32 +00:00
cmake-mode
color-moccur
2013-05-06 19:08:14 +00:00
csharp-mode
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
elixir-mix
elixir-mode
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
2013-11-06 03:53:50 +00:00
flx-ido
flycheck
flycheck-color-mode-line
2013-07-23 03:08:26 +00:00
fringe-helper
fuzzy
2013-07-23 03:08:26 +00:00
git-gutter-fringe
2013-01-14 04:12:05 +00:00
ghc
golden-ratio
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
2013-11-16 00:20:45 +00:00
hy-mode
2013-11-06 03:54:27 +00:00
ido-vertical-mode
jedi
json-mode
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
2013-01-03 06:53:00 +00:00
org
2013-09-10 03:48:01 +00:00
org-bullets
org-trello
2013-04-29 19:47:31 +00:00
p4
2013-04-23 02:14:23 +00:00
page-break-lines
paredit
popup
popwin
2013-06-21 22:23:10 +00:00
pretty-symbols-mode
2013-01-12 16:58:50 +00:00
projectile
puppet-mode
python
2013-03-15 03:04:57 +00:00
quickrun
rainbow-mode
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
smartparens
string-edit
;; 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
visual-regexp-steroids
2013-03-13 04:11:01 +00:00
wdired
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)