2012-12-18 05:48:12 +00:00
|
|
|
(require 'package)
|
|
|
|
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
|
|
|
|
("gnu" . "http://elpa.gnu.org/packages/")
|
2013-04-15 15:12:39 +00:00
|
|
|
("marmalade" . "http://marmalade-repo.org/packages/")
|
2013-06-04 21:09:53 +00:00
|
|
|
("melpa" . "http://melpa.milkbox.net/packages/")))
|
2012-12-18 05:48:12 +00:00
|
|
|
(package-initialize)
|
2013-01-05 16:08:09 +00:00
|
|
|
(defvar syl:packages
|
2012-12-18 05:48:12 +00:00
|
|
|
'(
|
2013-11-25 05:19:04 +00:00
|
|
|
ac-ispell
|
2012-12-19 20:18:17 +00:00
|
|
|
ace-jump-mode
|
2013-12-02 13:40:12 +00:00
|
|
|
ample-theme
|
|
|
|
anti-zenburn-theme
|
2012-12-21 21:06:22 +00:00
|
|
|
auto-complete
|
2013-09-18 03:20:11 +00:00
|
|
|
auto-complete-clang
|
2013-01-24 01:03:18 +00:00
|
|
|
auto-dictionary
|
2013-04-16 22:08:52 +00:00
|
|
|
buffer-move
|
2013-09-17 05:04:34 +00:00
|
|
|
cc-mode
|
2013-05-22 15:37:32 +00:00
|
|
|
cmake-mode
|
2013-01-02 22:08:45 +00:00
|
|
|
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
|
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
|
2013-07-21 03:50:43 +00:00
|
|
|
elixir-mix
|
|
|
|
elixir-mode
|
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
|
2014-04-11 22:47:14 +00:00
|
|
|
evil-exchange
|
2013-01-07 06:51:44 +00:00
|
|
|
evil-leader
|
2013-12-11 15:01:41 +00:00
|
|
|
evil-matchit
|
2013-12-03 14:25:57 +00:00
|
|
|
evil-visualstar
|
2012-12-29 20:39:39 +00:00
|
|
|
expand-region
|
2013-04-23 19:56:44 +00:00
|
|
|
fill-column-indicator
|
2013-11-06 03:53:50 +00:00
|
|
|
flx-ido
|
2013-04-29 15:56:44 +00:00
|
|
|
flycheck
|
2013-05-04 02:40:22 +00:00
|
|
|
flycheck-color-mode-line
|
2013-11-24 04:04:26 +00:00
|
|
|
flyspell
|
2013-07-23 03:08:26 +00:00
|
|
|
fringe-helper
|
2013-12-01 04:45:38 +00:00
|
|
|
gist
|
2013-07-23 03:08:26 +00:00
|
|
|
git-gutter-fringe
|
2014-04-11 22:26:28 +00:00
|
|
|
git-messenger
|
2013-01-14 04:12:05 +00:00
|
|
|
ghc
|
2013-11-18 02:45:13 +00:00
|
|
|
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
|
2013-12-12 03:15:34 +00:00
|
|
|
helm-css-scss
|
2013-03-14 04:40:23 +00:00
|
|
|
helm-c-yasnippet
|
2014-04-12 01:36:21 +00:00
|
|
|
helm-helm-commands
|
2013-12-12 03:15:34 +00:00
|
|
|
helm-descbinds
|
2014-04-12 01:36:21 +00:00
|
|
|
helm-make
|
|
|
|
helm-mode-manager
|
|
|
|
;; not working for now
|
|
|
|
;; helm-proc
|
2013-03-14 04:40:23 +00:00
|
|
|
helm-projectile
|
2013-12-12 03:08:48 +00:00
|
|
|
helm-swoop
|
2013-11-30 02:19:45 +00:00
|
|
|
helm-themes
|
2014-04-11 22:32:52 +00:00
|
|
|
howdoi
|
2013-11-16 00:20:45 +00:00
|
|
|
hy-mode
|
2013-11-06 03:54:27 +00:00
|
|
|
ido-vertical-mode
|
2012-12-21 21:06:22 +00:00
|
|
|
jedi
|
2013-04-14 03:34:45 +00:00
|
|
|
json-mode
|
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-12-02 13:11:48 +00:00
|
|
|
monokai-theme
|
2013-01-04 16:33:17 +00:00
|
|
|
move-text
|
2013-04-23 18:05:30 +00:00
|
|
|
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
|
2013-04-15 15:12:39 +00:00
|
|
|
paredit
|
2012-12-21 21:06:22 +00:00
|
|
|
popup
|
2013-05-04 03:43:26 +00:00
|
|
|
popwin
|
2014-04-12 01:35:56 +00:00
|
|
|
;; not needed anymore ?
|
2013-12-03 14:25:57 +00:00
|
|
|
;; pretty-symbols-mode
|
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
|
2014-04-12 01:35:56 +00:00
|
|
|
;; not working well for now
|
2014-04-11 23:00:17 +00:00
|
|
|
;; rainbow-blocks
|
2013-09-16 00:04:56 +00:00
|
|
|
rainbow-mode
|
2012-12-18 05:48:12 +00:00
|
|
|
rainbow-delimiters
|
2014-04-07 19:15:08 +00:00
|
|
|
rainbow-identifiers
|
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
|
2013-06-01 02:32:47 +00:00
|
|
|
smartparens
|
2013-05-05 02:22:19 +00:00
|
|
|
string-edit
|
2013-11-20 05:30:23 +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-05-05 02:22:19 +00:00
|
|
|
visual-regexp-steroids
|
2013-11-18 06:06:38 +00:00
|
|
|
volatile-highlights
|
2014-04-12 02:55:27 +00:00
|
|
|
wand
|
2013-03-13 04:11:01 +00:00
|
|
|
wdired
|
2012-12-21 21:06:22 +00:00
|
|
|
yasnippet
|
2013-11-30 02:26:22 +00:00
|
|
|
zenburn-theme
|
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/"))
|
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))
|
2013-11-20 05:30:23 +00:00
|
|
|
(load initfile))))
|
2012-12-18 05:48:12 +00:00
|
|
|
|
|
|
|
(when (memq window-system '(mac ns))
|
|
|
|
(exec-path-from-shell-initialize))
|
|
|
|
|
2012-12-21 21:06:22 +00:00
|
|
|
(provide 'packages)
|