-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
74 lines (59 loc) · 1.69 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
;; init.el --- Emacs configuration entry -*- lexical-binding: t; -*- ;;
;; Author: Guangsheng Li <[email protected]>
;; Maintainer: Guangsheng Li <[email protected]>
;;; Commentary:
;; This file bootstraps the configuration, which is divided into
;; a number of other files.
;;; Code:
;; Speed up startup
;; Add dir to load-path
(dolist (dir '("site-lisp" "lisp"))
(push (expand-file-name dir user-emacs-directory) load-path))
;; Recursive add site-lisp to load-path
(let ((default-directory (expand-file-name "site-lisp" user-emacs-directory)))
(normal-top-level-add-subdirs-to-load-path))
(defvar native-comp-deferred-compilation-deny-list nil)
(require 'init-elpa)
(require 'init-straight)
(require 'init-basic)
;;; Quick Settings:
(setq-default
my-gui-theme 'catppuccin
my-tui-theme 'catppuccin
my-enfont "MonaspiceKrNerdFont:pixelsize=12:weight=medium"
my-cnfont "LXGW WenKai Mono:pixelsize=14"
my-enable-server t
my-auto-restore-session nil
line-spacing 0.2
)
;; core
(require 'init-theme)
(require 'init-evil)
(require 'init-keys)
(require 'init-buffer)
(require 'init-window)
(require 'init-fonts)
;; features
(require 'init-features)
(require 'init-search)
(require 'init-editconfig)
(require 'init-avy)
(require 'init-project)
(require 'init-flycheck)
(require 'init-dired)
(require 'init-vcs)
(require 'init-treemacs)
(require 'init-copilot)
(require 'init-completion)
(require 'init-lsp)
(require 'init-tags)
;; (require 'init-lsp-bridge)
;; programing languages
(require 'init-prog)
(require 'init-go)
(require 'init-python)
(require 'init-rust)
(require 'init-org)
(require 'init-markdown)
;; exp
(;;; init.el ends here