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

@@ -5,10 +5,13 @@
;;; Code:
;; mac自动全屏
(unless *is-windows*
(cond
(*is-mac*
(toggle-frame-fullscreen)
(global-unset-key (kbd "<f12>"))
(global-set-key (kbd "<f12>") 'toggle-frame-fullscreen))
(*is-linux*
(toggle-frame-fullscreen)))
;; 配置备份文件和自动保存文件目录
(setq backup-directory-alist
@@ -31,15 +34,14 @@
;; 关闭提示音
(setq ring-bell-function 'ignore)
;; 同步scoop目录
(when *is-windows*
;; 同步包管理器目录
(cond
(*is-windows*
(add-to-list 'exec-path (expand-file-name "H/appppppppppp/scoop/apps/"))
(setenv "PATH" (concat (expand-file-name "H/appppppppppp/scoop/apps/") ";" (getenv "PATH"))))
;; 同步brew目录
(when *is-mac*
(*is-mac*
(add-to-list 'exec-path (expand-file-name "/opt/homebrew/bin/"))
(setenv "PATH" (concat (expand-file-name "/opt/homebrew/bin/") ":" (getenv "PATH"))))
(setenv "PATH" (concat (expand-file-name "/opt/homebrew/bin/") ":" (getenv "PATH")))))
;; 当文件被外部修改时自动刷新
(global-auto-revert-mode 1)
@@ -80,6 +82,7 @@
;; ibuffer
(setq ibuffer-default-sorting-mode 'filename)
;; 关闭native compile警告
(setq native-comp-async-warnings-errors-kind 'silent)
;; short anwser