boon/boon-spaceline.el
Andreas Fuchs 501adc6580 Use the non-deprecated face for mode-line-inactive (#66)
modeline-inactive was deprecated in emacs 22.1, and causes errors on
26.2.
2019-05-29 10:49:47 +02:00

23 lines
623 B
EmacsLisp

;;; boon-spaceline.el --- An Ergonomic Command Mode -*- lexical-binding: t -*-
;;; Commentary:
;; This module gives an example setup for spaceline using boon.
;;; Code:
(require 'boon-core)
(require 'boon-powerline)
(require 'spaceline-config)
;; This requires https://github.com/TheBB/spaceline/pull/201/commits/45c4c4b26d923c541ede138c3b3834e2f75778f8 to work.
(spaceline-define-segment boon
"Boon status"
(boon-state-string)
:when (bound-and-true-p boon-mode)
:face (if (powerline-selected-window-active) (boon-state-face) 'mode-line-inactive))
(provide 'boon-spaceline)
;;; boon-spaceline.el ends here