-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.el
110 lines (105 loc) ยท 3.62 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
;; file: init.el
(progn ;; `initial-file&directory'
;; ref: https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Customizations.html
(setq custom-file (locate-user-emacs-file "custom.el"))
(load custom-file 'noerror)
;; lock ํ์ผ .#ํ์ผ๋ช
;; ref: https://www.gnu.org/software/emacs/manual/html_node/emacs/Backup.html
(setq make-backup-files nil)
;; backup ํ์ผ ํ์ผ๋ช
~
;; ref: https://www.gnu.org/software/emacs/manual/html_node/elisp/File-Locks.html
(setq create-lockfiles nil)
;; ref: https://www.gnu.org/software/emacs/manual/html_node/emacs/Auto-Save-Control.html
(setq auto-save-default nil))
(use-package package
;;
;; ref: https://github.com/emacs-mirror/emacs/blob/master/lisp/emacs-lisp/package.el
;; ref: https://www.gnu.org/software/emacs/manual/html_node/emacs/Packages.html
;;
;; elpa(`E`macs `L`isp `P`ackage `A`rchive)
;; melpa(`M`ilkypostman `E`macs `L`isp `P`ackage `A`rchive)
;;
;; elpa(gnu): https://elpa.gnu.org/
;; elpa(nognu): https://elpa.nongnu.org/
;; melpa: http://melpa.org/
;; melpa(stable): http://stable.melpa.org/
;; ๋ฏธ๋ฌ ์นธํธ๋ํ: https://www.mirrorservice.org/
;; ๋ฏธ๋ฌ ์นญํ๋ํ: https://mirrors.tuna.tsinghua.edu.cn/help/elpa/
:init
(setq package-check-signature nil)
:config
(progn ;; `elpa'
(defconst PACKAGE_ELPA_GNU
'("gnu" . "https://elpa.gnu.org/packages/"))
(defconst PACKAGE_ELPA_NOGNU
'("nongnu" . "https://elpa.nongnu.org/nongnu/")))
(progn ;; `melpa'
(defconst PACKAGE_MELPA
'("melpa" . "http://melpa.org/packages/"))
(defconst PACKAGE_MELPA_STABLE
'("melpa-stable" . "http://stable.melpa.org/packages/")))
(progn ;; `mirrorservice'
(defconst PACKAGE_MIRRORSERVICE_MELPA
'("melpa" . "http://www.mirrorservice.org/sites/melpa.org/packages/"))
(defconst PACKAGE_MIRRORSERVICE_MELPA_STABLE
'("melpa-stable" . "http://www.mirrorservice.org/sites/stable.melpa.org/packages/")))
(progn ;; `tsinghua'
(defconst PACKAGE_TSINGHUA_GNU
'("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/"))
(defconst PACKAGE_TSINGHUA_NOGNU
'("nognu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/nongnu/"))
(defconst PACKAGE_TSINGHUA_MELPA
'("melpa-cn" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/"))
(defconst PACKAGE_TSINGHUA_MELPA_STABLE
'("melpa-stable-cn" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/stable-melpa/")))
;;(setq-default package-user-dir DIR_ROOT_PACKAGE)
(setq package-archives
(list
PACKAGE_ELPA_GNU
PACKAGE_ELPA_NOGNU
PACKAGE_MELPA
)))
(progn ;; `์ค์ '
(thread-last
"config-loader.el"
(locate-user-emacs-file)
(file-truename)
(load-file))
(defconst CONFIG_DIR "config/")
(defconst CONFIG_LIST
'(
;;; =========== `base-'
base-define.el
base-setting.el
;;; =========== `os-'
os-windows.el
os-macos.el
os-linux.el
;;; =========== `setting-'
setting-theme.el
setting-ui.el
setting-navigation.el
setting-editting.el
setting-font.el
setting-treemacs.el
setting-projectile.el
;;; =========== `lang-' : language(programming)
lang-emacs-lisp.el
lang-common-lisp-sly.el
;; lang-common-lisp-slime.el
lang-clojure-cider.el
lang-racket-racket-mode.el
;;; =========== `file-' : file type
file-markdown.el
file-json.el
;;; =========== `util-'
util-git.el
util-flymake.el
util-quickrun.el
util-command.el
util-company.el
;; util-completion.el
;;; =========== `ai-'
ai-tabnine.el
))
(config-loader:load-config CONFIG_DIR CONFIG_LIST))