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

@@ -4,13 +4,18 @@
;;; Code:
(use-package window
:straight nil
:config
(setq switch-to-buffer-obey-display-actions t))
(use-package popper
:defines
popper-echo-dispatch-actions
:commands
popper-group-by-directory
:hook
(emacs-startup . popper-mode)
(after-init . popper-mode)
:init
(setq popper-reference-buffers
@@ -90,9 +95,9 @@
(when (display-grayscale-p)
(setq popper-mode-line
'("[POP]")))
(setq popper-echo-dispatch-actions t)
(setq popper-group-function nil)
:config
(popper-echo-mode 1)