-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearly-init.el
37 lines (25 loc) · 1.06 KB
/
early-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
;;;; Directories ---------------------------------------------------------------
(defconst my-emacs-dir
(expand-file-name user-emacs-directory))
(defconst my-core-dir
(expand-file-name "core/" my-emacs-dir))
(defconst my-modules-dir
(expand-file-name "modules/" my-emacs-dir))
(defconst my-cache-dir
(expand-file-name ".cache/" my-emacs-dir))
;; Force all packages to create files in cache dir...
(setq user-emacs-directory my-cache-dir)
;;;; Set up load path ----------------------------------------------------------
(add-to-list 'load-path my-core-dir)
(add-to-list 'load-path my-modules-dir)
;;;; Setup GUI early -----------------------------------------------------------
(setq-default
menu-bar-mode nil
tool-bar-mode nil
scroll-bar-mode nil
use-dialog-box nil)
(add-to-list 'default-frame-alist '(font . "Monospace-12"))
;;;; Setup Package early -------------------------------------------------------
;; Don't init package system automatically because it will be inited
;; manually once it's preperly configured.
(setq package-enable-at-startup nil)