forked from jrnold/emacs-dot-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
78 lines (69 loc) · 1.67 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
;;; init.el --- init file for jrnold
;; -*- no-byte-compile: t -*-
;;
;;; Commentary:
;;
;; Global emacs init file
;;; Code:
(defvar cask-file "~/.cask/cask.el"
"Path to cask.el.")
(require 'cask cask-file)
(cask-initialize)
(require 'pallet)
;;; Autocompile files
;; (setq load-prefer-newer t)
;; (require 'auto-compile)
;; (auto-compile-on-load-mode t)
;; (auto-compile-on-save-mode t)
;; Add paths for directories with init files
(defvar init-local-dir
(concat user-emacs-directory "local")
"User directory with local files.")
(add-to-list 'load-path init-local-dir)
(defvar init-library-dir
(concat user-emacs-directory "lisp")
"User directory with libraries in init.")
(add-to-list 'load-path init-library-dir)
;; ensure that the PATH is set
(when (memq window-system '(mac ns))
(exec-path-from-shell-initialize))
;; load stuff
(load "init-local-config" t)
(setq init-libraries
'("init-core"
"init-emacs-lisp"
"init-font"
"init-flycheck"
"init-color-theme"
"init-company-mode"
;; "init-auto-complete"
"init-tex"
"init-ess"
"init-ibuffer"
"init-markdown"
"init-misc"
"init-n3-mode"
"init-octave"
"init-org"
"init-python"
"init-reftex"
"init-rst"
"init-sql"
"init-tramp"
"init-stan"
"init-yasnippet"
"init-langtool"
"init-ispell"
"init-dired"
"init-occur"))
(mapc 'load init-libraries)
(defun init-reload ()
"Reload the user init file."
(interactive)
(load user-init-file))
;; Load customization
(setq custom-file "~/.emacs.d/customization.el")
(if (file-exists-p custom-file)
(load custom-file))
(provide 'init)
;;; init.el ends here