-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
47 lines (36 loc) · 1.21 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
47
(add-to-list 'load-path "~/.emacs.d/vendor")
(progn (cd "~/.emacs.d/vendor")
(normal-top-level-add-subdirs-to-load-path))
(defconst emacs-config-dir "~/.emacs.d/configs/" "")
(setq load-path (cons "~/.emacs.d" load-path))
(defun load-cfg-files (filelist)
(dolist (file filelist)
(load (expand-file-name
(concat emacs-config-dir file)))
(message "Loaded config file: %s" file)
))
(load-cfg-files '("theme"
"python"
"shell"
"custom"
"dired"
"yasnippet"
"keybindings"
"textmate"
"main"))
(setq custom-file "~/.emacs.d/configs/custom.el")
(setq confirm-kill-emacs
(lambda (e)
(y-or-n-p-with-timeout
"Really exit Emacs (automatically exits in 5 secs)? " 5 t)))
;(server-start)
;(add-to-list 'load-path "~/emacs/utils")
;(require 'linum) ; line numbering
;(setq linum-format "%d ")
;(linum-mode 1)
;;; PACKAGES
;;; auto-complete
;(add-to-list 'load-path "~/emacs/packages/auto-complete-1.2")
;(require 'auto-complete-config)
;(add-to-list 'ac-dictionary-directories ;"~/emacs/packages/auto-complete-1.2/ac-dict")
;(ac-config-default)