Skip to content

Any simple way to change faces in moe-theme permanently? #96

Description

@BooAA

Hi, thanks for making such an awesome theme.

Personally I don' like the setting of flycheck-error face . I prefered the default flycheck faces (underline, wave, red), so I tried to reset it. By the way, I have another keybinding which let me to switch between moe-light and moe-dark easily.

However, everytimes I use load-theme to switch between moe-light and moe-dark, emacs seems to laod the source file ( moe-light.el or moe-dark.el) again, and the flycheck-error face will be set to the value defined in moe-theme but not my personal setting.

I haved make a very brute solution , like this:

(global-set-key [menu] (lambda ()
			(interactive)
			(if (equal moe-theme-which-enabled 'dark)
                             (progn
                               (load-theme 'moe-light t nil)
                               (custom-theme-set-faces 'moe-light
                                                       '(flycheck-error ((t (:underline (:color "black" :style wave)))))))
                           (progn
                               (load-theme 'moe-dark t nil)
                               (custom-theme-set-faces 'moe-dark
                                                       '(flycheck-error ((t (:underline (:color "Red1" :style wave))))))))))

which just set the value again after relaod the theme. I'm looking for a more elegant or reliable way to do this, hoping that you can give me some advice.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions