feat(emacs-org): Add basic org configs

* LaTeX Preview
* Remove custom.el from VCS
This commit is contained in:
js0ny 2025-01-29 15:34:50 +00:00
parent e6b1e1b595
commit e6037c3471
6 changed files with 97 additions and 2 deletions

View file

@ -20,3 +20,35 @@
(use-package marginalia
:init
(marginalia-mode))
;;; 设置语言环境为 UTF-8
;(set-language-environment "UTF-8")
;
;;; 强制使用 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)
;
;;; Windows 系统特殊设置
;(when (eq system-type 'windows-nt)
; (set-file-name-coding-system 'gbk) ;; 文件名使用 GBK
; (set-clipboard-coding-system 'utf-16le)) ;; 剪贴板使用 UTF-16LE
;
;(setq-default buffer-file-coding-system 'utf-8-unix)
;
;;; 设置行尾为 Unix 风格
;(add-hook 'find-file-hook 'find-file-check-line-endings)
;
;(defun dos-file-endings-p ()
; (string-match "dos" (symbol-name buffer-file-coding-system)))
;
;(defun find-file-check-line-endings ()
; (when (dos-file-endings-p)
; (set-buffer-file-coding-system 'undecided-unix)
; (set-buffer-modified-p nil)))
(setq-default buffer-file-coding-system 'utf-8-unix)
(provide 'init-edit)