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/")
|
2013-04-15 15:12:39 +00:00
|
|
|
("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)
|
2013-01-05 16:08:09 +00:00
|
|
|
(defvar syl:packages
|
2012-12-18 05:48:12 +00:00
|
|
|
'(
|
2012-12-19 20:18:17 +00:00
|
|
|
ace-jump-mode
|
2012-12-21 21:06:22 +00:00
|
|
|
auto-complete
|
2013-01-24 01:03:18 +00:00
|
|
|
auto-dictionary
|
2012-12-21 21:06:22 +00:00
|
|
|
autopair
|
2013-04-16 22:08:52 +00:00
|
|
|
buffer-move
|
2013-01-02 22:08:45 +00:00
|
|
|
color-moccur
|
2013-04-25 15:58:12 +00:00
|
|
|
dash
|
2013-02-20 00:56:52 +00:00
|
|
|
deft
|
2012-12-21 21:06:22 +00:00
|
|
|
deferred
|
2012-12-29 03:01:13 +00:00
|
|
|
diminish
|
2013-03-19 03:23:54 +00:00
|
|
|
dired+
|
2012-12-30 17:18:08 +00:00
|
|
|
elisp-slime-nav
|
2012-12-21 21:06:22 +00:00
|
|
|
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
|
2012-12-29 20:39:39 +00:00
|
|
|
expand-region
|
2013-04-23 19:56:44 +00:00
|
|
|
fill-column-indicator
|
2012-12-22 04:18:35 +00:00
|
|
|
find-file-in-project
|
2013-04-29 15:56:44 +00:00
|
|
|
flycheck
|
2013-05-04 02:40:22 +00:00
|
|
|
flycheck-color-mode-line
|
2013-04-13 22:11:24 +00:00
|
|
|
flymake
|
2013-04-10 04:39:54 +00:00
|
|
|
flymake-cursor
|
|
|
|
flymake-easy
|
|
|
|
flymake-haskell-multi
|
2012-12-21 21:06:22 +00:00
|
|
|
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
|
2013-03-08 06:01:20 +00:00
|
|
|
htmlize
|
2012-12-21 21:06:22 +00:00
|
|
|
jedi
|
2013-04-14 03:34:45 +00:00
|
|
|
json-mode
|
2012-12-18 05:48:12 +00:00
|
|
|
key-chord
|
2013-03-13 04:11:01 +00:00
|
|
|
less-css-mode
|
2012-12-28 17:51:00 +00:00
|
|
|
magit
|
2013-03-08 06:01:20 +00:00
|
|
|
markdown-mode
|
2013-01-04 16:33:17 +00:00
|
|
|
move-text
|
2013-04-23 18:05:30 +00:00
|
|
|
multi-term
|
2013-01-02 22:08:45 +00:00
|
|
|
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
|
2013-04-15 15:12:39 +00:00
|
|
|
paredit
|
2012-12-18 05:48:12 +00:00
|
|
|
powerline
|
2012-12-21 21:06:22 +00:00
|
|
|
popup
|
2013-05-04 03:43:26 +00:00
|
|
|
popwin
|
2013-01-12 16:58:50 +00:00
|
|
|
projectile
|
2012-12-29 20:39:39 +00:00
|
|
|
puppet-mode
|
2013-01-03 14:50:17 +00:00
|
|
|
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
|
2013-04-24 03:15:02 +00:00
|
|
|
ruby-end
|
2013-04-22 20:33:10 +00:00
|
|
|
ruby-mode
|
|
|
|
ruby-test-mode
|
2013-04-25 15:58:12 +00:00
|
|
|
s
|
2012-12-21 21:06:22 +00:00
|
|
|
smart-operator
|
2013-04-23 18:05:30 +00:00
|
|
|
;; sr-speedbar
|
2013-04-20 21:06:32 +00:00
|
|
|
stripe-buffer
|
2013-04-23 18:05:30 +00:00
|
|
|
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
|
2012-12-21 21:06:22 +00:00
|
|
|
yasnippet
|
2012-12-18 05:48:12 +00:00
|
|
|
))
|
|
|
|
|
|
|
|
;;; install missing packages
|
2013-01-05 16:08:09 +00:00
|
|
|
(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)
|
2013-01-05 16:08:09 +00:00
|
|
|
(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))
|
|
|
|
|
2012-12-21 21:06:22 +00:00
|
|
|
(provide 'packages)
|