forked from technomancy/emacs-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathinit.el
More file actions
45 lines (34 loc) · 1.49 KB
/
init.el
File metadata and controls
45 lines (34 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
(add-to-list 'load-path user-emacs-directory)
;; old starter kit legacy code...
;;TODO: remove dependece on the following lines and rm -rf corresponding files...
(setq dotfiles-dir user-emacs-directory)
(add-to-list 'load-path (concat dotfiles-dir "/elpa-to-submit"))
(setq autoload-file (concat dotfiles-dir "loaddefs.el"))
(load autoload-file)
;;;;
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("tromey" . "http://tromey.com/elpa/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defun ensure-packages-installed (packages)
(dolist (p packages)
(when (not (package-installed-p p))
(package-install p))))
;; TODO: Switch to the package once a release is made... right now we rely on unreleased changes
;;(ensure-packages-installed
;; '(starter-kit starter-kit-bindings starter-kit-eshell))
;; TODO: remove when new starter kit package is available
(ensure-packages-installed
'(paredit idle-highlight-mode find-file-in-project smex ido-ubiquitous magit))
(add-to-list 'load-path (concat user-emacs-directory "vendor/emacs-starter-kit"))
(add-to-list 'load-path (concat user-emacs-directory "vendor/emacs-starter-kit/modules"))
(mapc 'require '(starter-kit starter-kit-bindings starter-kit-eshell))
;;;
(setq custom-file (concat esk-user-dir "/custom.el"))
(load (concat dotfiles-dir "initializers.el"))
(ini-load-all)
(server-start)