Emacs minor-mode to change moe-theme mode-line color according to the Flycheck status.
I am a complete beginner in elisp, so the code can be full of bugs. Use it at your own risk, and please help me to improve it
Idea and code shamelessly stolen from flycheck-color-mode-line.
Put this code in your init file:
(require 'moe-flycheck-mode-line)
(eval-after-load "flycheck"
'(add-hook 'flycheck-mode-hook 'moe-flycheck-mode-line-mode))
You can choose any of moe-theme mode-line themes, or any other declared by you.
Defaults are:
- Flycheck default/no error: 'green
- Flycheck warning: 'orange
- Flycheck error: 'red
- Flycheck info: 'blue
- Flycheck check failed: 'purple
The themes can be customized in the customization group flycheck-faces
:
M-x customize-group
moe-flycheck-mode-line
or:
M-x moe-flycheck-mode-line-customize
or, in your init.el
:
(setq moe-flycheck-mode-line-error 'red)
- Sylvain Benner for the idea and code from the excellent flycheck-color-mode-line.
- hiroko for moe-theme the best emacs theme ever!