Config: Strip down and simplify Emacs config

- Remove consult-dir, nerd-icons-completion, org-contrib and some other unused package
- Delete init-org-refile.el and related keybindings
- Prune EMMS config
- Remove EXWM flatpak launcher helpers (vscodium, localsend, steam)
- Extract Windows dirvish video preview fix to standalone module
- Drop built-in settings moved elsewhere (startup defaults, whitespace, etc.)
- Clean up trailing whitespace / process list prettify configs
This commit is contained in:
2026-05-04 12:01:25 +08:00
parent 1a941344bf
commit 2162b34007
15 changed files with 102 additions and 391 deletions

View File

@@ -10,35 +10,33 @@
(defconst *is-windows* (or (eq system-type 'ms-dos)
(eq system-type 'windows-nt)))
;; Windows 系统编码设置
(when *is-windows*
;; 设置默认编码环境
(set-language-environment "UTF-8")
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
;; 设置进程通信编码
(setq default-process-coding-system '(utf-8 . utf-8))
;; 为特定程序设置编码
(if *is-windows*
(progn
(add-to-list 'process-coding-system-alist '("rg" utf-8 . gbk))
(add-to-list 'process-coding-system-alist '("ripgrep" utf-8 . gbk)))
(if *is-windows*
(progn
(add-to-list 'process-coding-system-alist '("rg" utf-8 . utf-8))
(add-to-list 'process-coding-system-alist '("ripgrep" utf-8 . utf-8))))
(add-to-list 'process-coding-system-alist '("grep" utf-8 . utf-8))
(add-to-list 'process-coding-system-alist '("find" utf-8 . utf-8))
(add-to-list 'process-coding-system-alist '("fd" utf-8 . utf-8))
(add-to-list 'process-coding-system-alist '("fdfind" utf-8 . utf-8))
;; 设置默认编码环境
(set-language-environment "UTF-8")
(prefer-coding-system 'utf-8)
(set-default-coding-systems 'utf-8)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
;; Windows 文件名 Unicode 支持
(setq w32-unicode-filenames t)
(setq w32-system-coding-system 'utf-8))
;; 设置进程通信编码
(setq default-process-coding-system '(utf-8 . utf-8))
;; Windows 文件名 Unicode 支持
(setq w32-unicode-filenames t)
(setq w32-system-coding-system 'utf-8)
;; 为特定程序设置编码
(add-to-list 'process-coding-system-alist '("rg" utf-8 . gbk))
(add-to-list 'process-coding-system-alist '("ripgrep" utf-8 . gbk)))
(progn
(add-to-list 'process-coding-system-alist '("rg" utf-8 . utf-8))
(add-to-list 'process-coding-system-alist '("ripgrep" utf-8 . utf-8))))
(add-to-list 'process-coding-system-alist '("grep" utf-8 . utf-8))
(add-to-list 'process-coding-system-alist '("find" utf-8 . utf-8))
(add-to-list 'process-coding-system-alist '("fd" utf-8 . utf-8))
(add-to-list 'process-coding-system-alist '("fdfind" utf-8 . utf-8))
(provide 'init-const)