28 lines
577 B
EmacsLisp
28 lines
577 B
EmacsLisp
;;; 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)))
|
|
|
|
;; 显示文件大小
|
|
(size-indication-mode t)
|
|
|
|
;; 显示行号列号
|
|
(column-number-mode t)
|
|
|
|
(provide 'init-terminal-ui)
|
|
|
|
;;; init-terminal-ui.el ends here
|