mirror of
https://github.com/vale981/boon
synced 2025-03-05 09:31:43 -05:00
spaceline support
This commit is contained in:
parent
b4cf42bbc5
commit
c852fce971
4 changed files with 32 additions and 3 deletions
|
@ -110,8 +110,6 @@ and add the following to your configuration:
|
||||||
|
|
||||||
(require 'boon-colemak)
|
(require 'boon-colemak)
|
||||||
;; (require 'boon-qwerty) ;; for qwerty port
|
;; (require 'boon-qwerty) ;; for qwerty port
|
||||||
(require 'boon-powerline)
|
|
||||||
(boon-powerline-theme) ;; if you want use powerline with Boon
|
|
||||||
|
|
||||||
Then
|
Then
|
||||||
|
|
||||||
|
@ -144,6 +142,12 @@ The main variables to configure are:
|
||||||
- boon-select-map, boon-moves-map, boon-command-map. (Those are keymaps.)
|
- boon-select-map, boon-moves-map, boon-command-map. (Those are keymaps.)
|
||||||
- boon-enclosures (can be `custom`ized.)
|
- 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
|
Comparison with other modal layers for Emacs
|
||||||
---------------------------------------------
|
---------------------------------------------
|
||||||
|
|
||||||
|
|
23
boon-spaceline.el
Normal file
23
boon-spaceline.el
Normal 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
|
|
@ -15,6 +15,7 @@
|
||||||
dash
|
dash
|
||||||
expand-region
|
expand-region
|
||||||
powerline ;; only for boon-powerline
|
powerline ;; only for boon-powerline
|
||||||
|
spaceline ;; only for boon-spaceline
|
||||||
))
|
))
|
||||||
(package-install pkg)
|
(package-install pkg)
|
||||||
(package-activate pkg))
|
(package-activate pkg))
|
||||||
|
|
|
@ -120,7 +120,8 @@ in several ways:
|
||||||
- If you invoke `(boon-powerline-theme)' and have powerline
|
- If you invoke `(boon-powerline-theme)' and have powerline
|
||||||
installed then the state text will be shown using various
|
installed then the state text will be shown using various
|
||||||
colors. This is useful to find out what state you're in without
|
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
|
You can switch from command to insert mode by typing
|
||||||
\\[boon-set-insert-like-state] " (boon-mnemonic
|
\\[boon-set-insert-like-state] " (boon-mnemonic
|
||||||
|
|
Loading…
Add table
Reference in a new issue