spaceline support

This commit is contained in:
Jean-Philippe Bernardy 2018-08-05 22:00:58 +02:00
parent b4cf42bbc5
commit c852fce971
4 changed files with 32 additions and 3 deletions

View file

@ -110,8 +110,6 @@ and add the following to your configuration:
(require 'boon-colemak)
;; (require 'boon-qwerty) ;; for qwerty port
(require 'boon-powerline)
(boon-powerline-theme) ;; if you want use powerline with Boon
Then
@ -144,6 +142,12 @@ The main variables to configure are:
- boon-select-map, boon-moves-map, boon-command-map. (Those are keymaps.)
- boon-enclosures (can be `custom`ized.)
If you use powerline, you may want to:
(require 'boon-powerline)
(boon-powerline-theme) ;; if you want use powerline with Boon
Comparison with other modal layers for Emacs
---------------------------------------------

23
boon-spaceline.el Normal file
View file

@ -0,0 +1,23 @@
;;; 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) 'modeline-inactive))
(provide 'boon-spaceline)
;;; boon-spaceline.el ends here

View file

@ -15,6 +15,7 @@
dash
expand-region
powerline ;; only for boon-powerline
spaceline ;; only for boon-spaceline
))
(package-install pkg)
(package-activate pkg))

View file

@ -120,7 +120,8 @@ in several ways:
- If you invoke `(boon-powerline-theme)' and have powerline
installed then the state text will be shown using various
colors. This is useful to find out what state you're in without
having to read any text.
having to read any text. (There is also support for spaceline,
but it requires a patch to said package at the time of writing)
You can switch from command to insert mode by typing
\\[boon-set-insert-like-state] " (boon-mnemonic