@@ 1,6 1,9 @@
;;; ui-theme-fonts.el --- User interface, themes, and font configuration -*- lexical-binding: t -*-
-;; Copyright (C) 2024 Cytrogen
+;; Copyright (C) 2026 Cytrogen
+
+;; Many package selections and configurations adapted from
+;; Steve Purcell's emacs.d: https://github.com/purcell/emacs.d
;; This file contains:
;; - Font configuration with CJK support
@@ 259,5 262,32 @@ Refactored to strictly separate Fixed Pitch (Code) and Variable Pitch (Writing)
frame (my/setup-blog-fonts))))
(my/setup-blog-fonts))
+;; Default-text-scale — C-M-= / C-M-- 全局字体缩放
+(unless (package-installed-p 'default-text-scale)
+ (package-install 'default-text-scale))
+(require 'default-text-scale)
+(default-text-scale-mode 1)
+
+;; Page-break-lines — ^L 显示为水平分隔线
+(unless (package-installed-p 'page-break-lines)
+ (package-install 'page-break-lines))
+(require 'page-break-lines)
+(global-page-break-lines-mode 1)
+
+;; Dimmer — 非活动窗口变暗
+(unless (package-installed-p 'dimmer)
+ (package-refresh-contents)
+ (package-install 'dimmer))
+(require 'dimmer)
+(setq dimmer-fraction 0.3)
+(dimmer-configure-which-key)
+(dimmer-configure-magit)
+(dimmer-mode 1)
+
+;; Info-colors — Info 文档彩色化
+(unless (package-installed-p 'info-colors)
+ (package-install 'info-colors))
+(add-hook 'Info-selection-hook 'info-colors-fontify-node)
+
(provide 'ui-theme-fonts)
;;; ui-theme-fonts.el ends here=
\ No newline at end of file