-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathearly-init.el
33 lines (30 loc) · 944 Bytes
/
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
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(setq frame-inhibit-implied-resize t)
;; 增加IO性能
(setq read-process-output-max (* 1024 1024 10))
(setq gc-cons-threshold most-positive-fixnum)
(find-function-setup-keys)
(let ((file-name-handler-alist nil))
(add-to-list 'load-path
(expand-file-name
(concat user-emacs-directory "lisp")))
;; (setq toggle-debug-on-error t)
(require 'init-utils)
(add-subdirs-to-load-path
(concat user-emacs-directory
"site-lisp/"))
(setq custom-file (locate-user-emacs-file "custom.el"))
(when (file-exists-p custom-file)
(load custom-file))
(require 'init-package)
;; (require 'benchmark-init)
;; (benchmark-init/activate)
(require 'init-const)
(when sys/macp
(add-to-list 'default-frame-alist '(undecorated-round . t)))
(require 'init-startup)
(require 'lazy-load)
(require 'one-key)
(require 'init-font))