-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
51 lines (43 loc) · 1.54 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
(setq gc-cons-threshold most-positive-fixnum
gc-cons-percentage 0.6)
;; Increase how much is read from processes in a single chunk (default is 4kb).
;; `lsp-mode' benefits from that.
(setq read-process-output-max (* 4 1024 1024))
(require 'package)
(setq package-archives '(("gnu" . "http://mirrors.ustc.edu.cn/elpa/gnu/")
("melpa" . "http://mirrors.ustc.edu.cn/elpa/melpa/")
("nongnu" . "http://mirrors.ustc.edu.cn/elpa/nongnu/")))
;; (setq package-archives
;; '(("melpa" . "http://1.15.88.122/melpa/")
;; ("gnu" . "http://1.15.88.122/gnu/")
;; ("nongnu" . "http://1.15.88.122/nongnu/")))
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-and-compile
(setq use-package-always-ensure nil)
(setq use-package-always-defer nil)
(setq use-package-always-demand nil)
(setq use-package-expand-minimally nil)
(setq use-package-enable-imenu-support t))
(eval-when-compile
(require 'use-package))
(use-package quelpa
:ensure t
:commands quelpa
:custom
(quelpa-git-clone-depth 1)
(quelpa-self-upgrade-p nil)
(quelpa-update-melpa-p nil)
(quelpa-checkout-melpa-p nil))
(add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory))
(setq custom-file (locate-user-emacs-file "custom.el"))
(require 'init-base)
(require 'init-ui)
(require 'init-evil)
(require 'init-company)
(require 'init-org)
(require 'init-git)
(load custom-file 'no-error 'no-message)
(provide 'init)