Config: add TUI support: split GUI/terminal config, add init-terminal-{package,ui,kbd}

This commit is contained in:
User
2026-04-29 15:59:57 +08:00
parent ea9e3da60b
commit 7e8a801be2
6 changed files with 283 additions and 20 deletions

30
lisp/init-terminal-ui.el Normal file
View File

@@ -0,0 +1,30 @@
;;; init-terminal-ui.el --- ui and other style customization cofig -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
;; 设置系统编码
(when (fboundp 'set-charset-priority)
(set-charset-priority 'unicode))
(if *is-windows*
(progn
(set-language-environment 'chinese-gbk)
(prefer-coding-system 'utf-8-auto))
(progn
(set-language-environment "UTF-8")
(prefer-coding-system 'utf-8)))
;; 高亮当前行
(global-hl-line-mode t)
;; 显示文件大小
(size-indication-mode t)
;; 显示行号列号
(column-number-mode t)
(provide 'init-terminal-ui)
;;; init-terminal-ui.el ends here