~protesilaos/modus-themes

1

modus-themes-after-load-theme-hook not hooking

Details
Message ID
<CABjcPOxPX5hFUM-MQ2+omqvsVb0x7ij-UPsJra6Y9sGH21=GaQ@mail.gmail.com>
DKIM signature
missing
Download raw message
Hello,

For example, the following configuration doesn't highlight
font-lock-number-face (or any font-lock). Any suggestions?

(use-package modus-themes
  :ensure t
  :config
  (setq modus-themes-common-palette-overrides
        `((type     fg-main)
          (constant fg-main)
          (variable fg-main)
          (fnname   fg-main)
          (fg-line-number-inactive bg-active)
          (fg-line-number-active fg-dim)
          (bg-line-number-inactive unspecified)
          (bg-line-number-active unspecified)
          ,@modus-themes-preset-overrides-warmer))

  (defun my-modus-themes-custom-faces ()
    (modus-themes-with-colors
      (custom-set-faces
       `(font-lock-number-face ((,c :foreground ,cyan-warmer))))))

  (add-hook 'modus-themes-after-load-theme-hook #'my-modus-themes-custom-faces)

  (progn (add-to-list 'default-frame-alist '(font . "Comic Code-10"))
         (setopt line-spacing 0.3)
         ;; (custom-set-faces
         ;;  '(font-lock-number-face ((t (:foreground "#3f578f")))))
         (load-theme 'modus-operandi t)))


Thanks,
John
Details
Message ID
<87led0qivj.fsf@protesilaos.com>
In-Reply-To
<CABjcPOxPX5hFUM-MQ2+omqvsVb0x7ij-UPsJra6Y9sGH21=GaQ@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
> From: John Wick <devicesfor@gmail.com>
> Date: Wed, 20 Sep 2023 19:22:20 -0500
>
> Hello,

Hello John,

> For example, the following configuration doesn't highlight
> font-lock-number-face (or any font-lock). Any suggestions?

> [... 26 lines elided]

>          (load-theme 'modus-operandi t)))

Notice that the hook works when you load the theme with the function
'modus-themes-load-theme'.  Like this:

    (modus-themes-load-theme 'modus-operandi)

The commands 'modus-themes-toggle' and 'modus-themes-select' do the
same, as they call that function internally.

Please give it a try and let me know how it goes.

All the best,
Protesilaos (or simply "Prot")

-- 
Protesilaos Stavrou
https://protesilaos.com
Reply to thread Export thread (mbox)