-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
46 lines (38 loc) · 1.25 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
(require 'package)
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(defvar my-packages '(starter-kit
starter-kit-bindings
starter-kit-js
autopair
yasnippet
auto-complete
fuzzy
php-mode
php-extras
)
"Packages to be installed at launch.")
;; Install if not yet installed
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
(autopair-global-mode)
(yas-global-mode 1)
(require 'auto-complete-config)
(setq ac-dictionary-files (list (concat user-emacs-directory ".dict")))
(ac-config-default)
;; Fixes pycomplete.el
(add-hook 'python-mode-hook
'(lambda ()
(setq ac-sources '(ac-source-pycomplete
ac-source-abbrev
ac-source-dictionary
ac-source-words-in-same-mode-buffers))))
;; Set up python-mode
(setq py-install-directory (concat esk-user-dir "/python-mode.el-6.0.12/"))
(add-to-list 'load-path py-install-directory)
;; shows method signatures in python
(setq py-set-complete-keymap-p t)