Skip to content

Emacs minor-mode to change moe-theme mode-line color according to the Flycheck status

Notifications You must be signed in to change notification settings

choma/moe-flycheck-mode-line

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

moe-flycheck-mode-line.el

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.

Configuration

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))

Customization

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)

Credits

About

Emacs minor-mode to change moe-theme mode-line color according to the Flycheck status

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published