diff --git a/README.md b/README.md index 45c52ec..22618f0 100644 --- a/README.md +++ b/README.md @@ -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 --------------------------------------------- diff --git a/boon-spaceline.el b/boon-spaceline.el new file mode 100644 index 0000000..3c8c8da --- /dev/null +++ b/boon-spaceline.el @@ -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 diff --git a/boon-test.el b/boon-test.el index 3ab59fc..f452028 100644 --- a/boon-test.el +++ b/boon-test.el @@ -15,6 +15,7 @@ dash expand-region powerline ;; only for boon-powerline + spaceline ;; only for boon-spaceline )) (package-install pkg) (package-activate pkg)) diff --git a/boon-tutorial.el b/boon-tutorial.el index 3c40270..c98d6e7 100644 --- a/boon-tutorial.el +++ b/boon-tutorial.el @@ -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