-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinit.el
96 lines (83 loc) · 3.52 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
;; Make startup faster by reducing the frequency of garbage
;; collection. The default is 800 kilobytes. Measured in bytes.
(setq gc-cons-threshold (* 50 1000 1000))
;; dotemacs file for zhcosin<zhcosin@163.com>.
;; note: 配置修改后生效
;; 在每次编辑配置文件后,刚刚做的修改并不会立刻生效。这时你需要重启编辑器或者重新加载配置文件。重新加载配置文件你需要在当前配置文件中使用 M-x load-file 双击两次回车确认默认文件名,或者使用 M-x eval-buffer 去执行当前缓冲区的所有 Lisp 命令。你也可以使用 C-x C-e 来执行某一行的 Lisp 代码。这些可使刚刚修改的配置文件生效。当然你也可以将这些函数绑定为快捷键。
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(defconst cosin/befor-init-time (current-time))
(add-to-list 'load-path (expand-file-name "~/.emacs.d/lisp"))
;;(require 'init-ido)
(require 'init-keybindings)
(require 'init-packages)
(zhcosin/install-package-if-not-found 'use-package)
(require 'init-ui)
(require 'init-rainbow-delimiters)
(require 'init-better-default)
(require 'init-colortheme)
(require 'init-eshell)
(require 'init-dired)
;;(require 'init-window-number)
(require 'init-window-numbering)
;;(require 'init-powerline)
(require 'init-yasnippet)
(require 'init-orgmode)
(require 'init-company)
(require 'init-which-key)
(require 'init-popwin)
;;(require 'init-smex)
(require 'init-helm)
(require 'init-tramp)
(require 'init-evil)
(require 'init-evil-leader)
(require 'init-evil-visualstar)
(require 'init-recentf)
(require 'init-session)
(require 'init-evil-nerd-commenter)
;;(require 'init-ox-latex-chinese)
(require 'init-auctex)
(require 'init-cdlatex)
(require 'init-company-auctex)
(require 'init-org-page)
;;(require 'init-ego)
(require 'utils)
(require 'init-chinese-number)
;;(require 'init-flycheck)
(require 'init-scheme)
;;(require 'init-parinfer)
;;(require 'autopair)
(require 'init-helm-swoop)
(require 'init-youdao-dictionary)
(require 'init-asy)
(require 'init-org2pdf)
(require 'init-python)
(require 'init-magit)
(require 'init-keyfreq)
(require 'init-deft)
(require 'init-rg)
(require 'init-desktop)
(require 'init-wsl)
(require 'init-restclient)
(defconst cosin/after-init-time (current-time))
(message "This start spent %.2f seconds." (float-time (subtract-time cosin/after-init-time cosin/befor-init-time)))
(setq gc-cons-threshold (* 2 1000 1000))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
(quote
(evil-leader rainbow-delimiters deft use-package which-key helm smex desktop session window-number popwin monokai-theme company evil magit auctex company-auctex org-page flycheck chinese-number parinfer helm-swoop swiper-helm)))
'(session-use-package t nil (session)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(put 'upcase-region 'disabled nil)