Config: streamline config structure and reorganize modules

- Remove init-workspace.el and redundant UI/font/autothemer setup
- Add init-prog.el for programming language configs (treesit, lua, scheme, etc.)
- Defer org-refile loading via org-mode hook
- Adjust load order in init.el, add init-proxy
- Fix indentation and formatting issues
This commit is contained in:
User
2026-04-26 07:49:55 +08:00
parent c6cf0ef9d8
commit 4d810f270f
13 changed files with 205 additions and 347 deletions

View File

@@ -4,27 +4,6 @@
;;; Code:
;; Clash 代理配置
;; (if *is-linux*
;; (progn
;; (setq url-proxy-services
;; '(("http" . "192.168.31.121:7890")
;; ("https" . "192.168.31.121:7890")
;; ("no_proxy" . "\\(localhost\\|127\\.0\\.0\\.1\\|192\\.168\\.*\\)")))
;; (setenv "http_proxy" "192.168.31.121:7890")
;; (setenv "https_proxy" "192.168.31.121:7890"))
(progn
(setq url-proxy-services
'(("http" . "127.0.0.1:7890")
("https" . "127.0.0.1:7890")
("no_proxy" . "\\(localhost\\|127\\.0\\.0\\.1\\|192\\.168\\.*\\)")))
(setenv "http_proxy" "127.0.0.1:7890")
(setenv "https_proxy" "127.0.0.1:7890"))
;; )
;; straight.el
(defvar bootstrap-version)
(let ((bootstrap-file
@@ -61,8 +40,8 @@
;; 安装benchmark-init
(use-package benchmark-init
:init (benchmark-init/activate)
:hook (after-init . benchmark-init/deactivate))
:init (benchmark-init/activate)
:hook (after-init . benchmark-init/deactivate))
(provide 'init-elpa)