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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user