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