refactor: Reorganize config with use-package and optimize startup hooks

- Split monolithic init-package.el into focused modules
- Convert eager `:init` blocks to lazy `:hook`
- Consolidate UI settings and defer theme loading.
- Remove duplicated config between GUI and terminal paths.
This commit is contained in:
2026-06-04 02:27:20 +08:00
parent 8db37d1c6d
commit b4733718d4
20 changed files with 910 additions and 849 deletions

View File

@@ -6,14 +6,13 @@
(setq package-enable-at-startup nil)
(setq inhibit-startup-screen t) ; 禁用开始菜单
(setq inhibit-startup-screen t)
(when (fboundp 'tool-bar-mode)
(tool-bar-mode -1) ; 禁用工具栏
(scroll-bar-mode -1)) ; 禁用滚动条
(menu-bar-mode -1) ; 禁用菜单栏
(setq display-line-numbers-type '2)
(setq display-line-numbers-grow-only t) ; 行号栏只增不减
(setq display-line-numbers-width-start 4) ; 预设4位宽度
(tool-bar-mode -1)
(scroll-bar-mode -1))
(menu-bar-mode -1)
(prefer-coding-system 'utf-8)
(setq frame-background-mode 'dark)