Config: add TUI support: split GUI/terminal config, add init-terminal-{package,ui,kbd}
This commit is contained in:
30
lisp/init-terminal-ui.el
Normal file
30
lisp/init-terminal-ui.el
Normal 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
|
||||
Reference in New Issue
Block a user