fix circular face inheritace bug from doom-themes

This commit is contained in:
2025-11-27 11:26:00 +13:00
parent 5b224b0a93
commit b0d00a5fad

View File

@@ -63,18 +63,24 @@
#+END_SRC #+END_SRC
** Theme ** Theme
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package doom-themes (use-package doom-themes
:ensure t
:defer t
:config :config
;; Best dark themes for focus: ;; Fix circular face inheritance for Gnus faces
;; doom-one, doom-dracula, doom-tokyo-night, doom-palenight ;; This prevents "Face inheritance results in inheritance cycle" errors
(load-theme 'doom-tokyo-night t) ;; when creating new frames with emacsclient -c on pgtk builds
;; See: https://github.com/doomemacs/themes/issues/875
;; Enable flashing mode-line on errors (setcdr (assoc 'gnus-group-news-low-empty doom-themes-base-faces)
(doom-themes-visual-bell-config) '(:inherit 'gnus-group-mail-1-empty :weight 'normal)))
;; Corrects org-mode's native fontification ;; Load theme immediately (this triggers doom-themes to load with the fix applied)
(doom-themes-org-config)) (load-theme 'doom-tokyo-night t)
;; Enable doom-themes integrations
(doom-themes-visual-bell-config)
(doom-themes-org-config)
;; All-the-icons for visual indicators ;; All-the-icons for visual indicators
;;(use-package all-the-icons ;;(use-package all-the-icons
@@ -82,9 +88,8 @@
(use-package nerd-icons (use-package nerd-icons
:ensure t) :ensure t)
#+END_SRC #+END_SRC
** Modeline ** Modeline
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package doom-modeline (use-package doom-modeline
:init (doom-modeline-mode 1) :init (doom-modeline-mode 1)
:config :config