-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
33 lines (26 loc) · 989 Bytes
/
init.el
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
;; This must come before configuration of installed packages.
(require 'package)
(add-to-list 'package-archives '("melpa-stable" . "http://stable.melpa.org/packages/"))
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
;; list of packages to be installed
(defvar my-packages '(auto-complete
fill-column-indicator
helm
magit
markdown-mode
yaml-mode
zenburn-theme))
;; install packages if not installed yet
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
;; configuration directory, say ~/.emacs.d
(defvar conf-dir (file-name-directory load-file-name))
;; directory housing configuration files to be loaded
(defvar personal-dir (expand-file-name "personal" conf-dir))
;; directory housing saveplaces
(defvar savefile-dir (expand-file-name "saves" conf-dir))
;; load personal settings
(mapc 'load (directory-files personal-dir 't "^[^#].*el$"))