fix(ui): Load correct theme on Android
This commit is contained in:
@@ -16,12 +16,14 @@
|
|||||||
'(solarized-emacs :fork (:host github :repo "Andsy10/solarized-emacs"))
|
'(solarized-emacs :fork (:host github :repo "Andsy10/solarized-emacs"))
|
||||||
:init
|
:init
|
||||||
;; 把主题加载延迟到frame创建之后,防止daemon模式下宏不能正常展开
|
;; 把主题加载延迟到frame创建之后,防止daemon模式下宏不能正常展开
|
||||||
(if (daemonp)
|
(if (and (daemonp) (not *is-android*))
|
||||||
(add-hook 'after-make-frame-functions
|
(add-hook 'after-make-frame-functions
|
||||||
(lambda (frame)
|
(lambda (frame)
|
||||||
(with-selected-frame frame
|
(with-selected-frame frame
|
||||||
(load-theme 'my-dark t))))
|
(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
|
(use-package display-line-numbers
|
||||||
|
|||||||
Reference in New Issue
Block a user