Add support for bépo layout in a dedicated module

Evil is loaded too early to be able to wait for the
config.el file of a user to set the CR-rotation style variable.
This commit is contained in:
Gerry Agbobada 2020-08-14 21:41:25 +02:00 committed by Gerry Agbobada
parent 58af4aef56
commit 911d7cb82c
No known key found for this signature in database
GPG key ID: BE26DBAFD866BE34
5 changed files with 475 additions and 1 deletions

View file

@ -0,0 +1,19 @@
;;; input/keymaps/config.el -*- lexical-binding: t; -*-
(defface doom-bepo-hard-space '((t (:background "Aquamarine")))
"*Face for highlighting non-breaking spaces (`?\u00a0')in Font-Lock mode.
\(This is also ?\240.)"
:group 'doom-bepo :group 'faces)
(defvar doom-bepo-cr-rotation-style 'ergodis
"Modify this variable in your $DOOMDIR/init.el
Style of binding rotation for the cr keys.
If 'ergodis, then the module maps the old 'c' bindings to 'l' and the old 'r' to 'h', as
the 'change' function is used more often and 'l' is easier to reach than 'h' in bépo.
If 'strict, the module does a normal swap and 'c' bindings go to 'h', 'r' bindings go to 'l'.
In all cases, 'h' functions go to 'c' and 'l' ones go to 'r' so the navigation keys still feel vim-like.")
(when (featurep! +bepo)
(load! "+bepo"))