【主题】添加了主题的配置

This commit is contained in:
邵静 2024-06-25 19:10:40 +08:00
parent 73ee2baa8b
commit 5fce7fe877
2 changed files with 40 additions and 0 deletions

View File

@ -5,9 +5,11 @@
(require 'init-package) ; 配置包管理器
(require 'init-custom) ; 默认配置
(require 'init-theme) ; 主题配置
(require 'init-autocomplete) ; 自动补伤全配置
(require 'init-hydra) ; hydra配置自定的快捷键
(require 'init-errors) ; 错误/警告提示引擎配置
(require 'init-projectile) ; 项目管理配置
(require 'init-magit) ; git客户端
;;; init.el ends here

38
lisp/init-theme.el Normal file
View File

@ -0,0 +1,38 @@
;;; init-theme -- 主题配置
;;; Commentary:
;;; Code:
(use-package doom-themes
:ensure t
:config
;; 全局配置
(setq doom-themes-enable-bold t)
(setq doom-themes-enable-italic t)
;; 加载主题
(load-theme 'doom-acario-light t)
;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)
;; Enable custom neotree theme (all-the-icons must be installed!)
(doom-themes-neotree-config)
;; or for treemacs users
;; use "doom-colors" for less minimal icon theme
(setq doom-themes-treemacs-theme "doom-atom")
(doom-themes-treemacs-config)
;; Corrects (and improves) org-mode's native fontification.
(doom-themes-org-config)
)
;; 自定义的背景,绿豆沙色
;; 自定义的注释颜色,紫色
(custom-set-faces
'(default ((t (:background "#c7eacc"))))
'(font-lock-comment-face ((t (:foreground "#9c00db"))))
'(whitespace-space ((t (:foreground "#afafaf"))))
'(whitespace-tab ((t (:foreground "#afafaf"))))
'(whitespace-newline ((t (:foreground "#afafaf"))))
)
;;; all-the-icons配置
(use-package all-the-icons
:ensure t
)
(provide 'init-theme)
;;; init-theme.el ends here