fix(ui): Load correct theme on Android

This commit is contained in:
2026-06-28 15:49:31 +08:00
parent 0739da85cc
commit 959db450d7

View File

@@ -16,12 +16,14 @@
'(solarized-emacs :fork (:host github :repo "Andsy10/solarized-emacs"))
:init
;; 把主题加载延迟到frame创建之后防止daemon模式下宏不能正常展开
(if (daemonp)
(if (and (daemonp) (not *is-android*))
(add-hook 'after-make-frame-functions
(lambda (frame)
(with-selected-frame frame
(load-theme 'my-dark t))))
(load-theme 'my-dark t)))
(if *is-android*
(load-theme 'my-light t)
(load-theme 'my-dark t))))
;; 行号
(use-package display-line-numbers