-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
55 lines (46 loc) · 1.18 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
;;; init.el --- -*- lexical-binding: t; -*-
;;
;; Copyright (C) 2023 Lu Yaoke
;; License: GPL v3, or (at your option) any later version
;;
;;; Commentary:
;;
;;; Code:
;; 版本判断
(eval-and-compile
(when (< emacs-major-version 27)
(user-error
(concat
"Emacs 版本过低!!!\n"
"当前版本 " emacs-version ",最低版本 27.1"))))
(load (expand-file-name "lu-core" user-emacs-directory))
(dolist (module
'(
"editor/base"
"editor/edit"
"editor/ui"
"tools/magit"
"tools/meow"
"tools/corfu"
"tools/consult"
"tools/dired"
"tools/blink-search"
;; "os/macos"
"prog/treesit"
"prog/eglot"
;; "prog/lsp-bridge"
;; "prog/citire"
"prog/checker"
"lang/elisp"
"lang/cc"
"lang/rust"
"lang/sh"
"lang/python"
"lang/haskell"
"lang/conf"
"lang/org"
"lang/markdown"
))
(load (file-name-concat lu-emacs-dir "modules/" module "config")))
(load custom-file 'noerror 'nomessage)
;;; init.el ends here