[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-lisp-state f4da219005 120/125: Remove default key bin
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-lisp-state f4da219005 120/125: Remove default key binding and inform user to explicity define one. |
Date: |
Thu, 6 Jan 2022 04:58:46 -0500 (EST) |
branch: elpa/evil-lisp-state
commit f4da21900563f4ac1abf79f3fe73eaf1edcd633d
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Remove default key binding and inform user to explicity define one.
---
README.md | 13 +++++++++----
evil-lisp-state.el | 16 ++++++++--------
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index 816aa31cc7..2605fa3964 100644
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ both `evil`, `bind-map` and `smartparens` to be installed.
## Principle
To execute a command while in normal state, a leader key is used.
-By default, the leader for each command is `SPC l`.
+The leader has to be defined with the function `evil-lisp-state-leader`.
By default any command when executed sets the current state to `lisp state`.
Examples:
@@ -110,6 +110,14 @@ Key Binding | Function
## Configuration
+No default binding comes with the package, you have to explicitly
+bind the lisp state to a key with the function `evil-lisp-state-leader`
+For instance:
+
+```elisp
+(evil-lisp-state-leader ", l")
+```
+
Key bindings are set only for `emacs-lisp-mode` by default. It is possible to
add major modes with the variable `evil-lisp-state-major-modes'.
@@ -117,9 +125,6 @@ It is also possible to define the key bindings globally by
setting
`evil-lisp-state-global` to t. In this case `evil-lisp-state-major-modes' has
no
effect.
-The leader key is `SPC l` by default, it is possible to change it with the
-function `evil-lisp-state-leader`.
-
If you don't want commands to enter in `lisp state` by default set the variable
`evil-lisp-state-enter-lisp-state-on-command` to nil. Then use the
<kbd><leader> .</kbd> to enter manually in `lisp state`
diff --git a/evil-lisp-state.el b/evil-lisp-state.el
index 485d05d0f9..d3db8782e8 100644
--- a/evil-lisp-state.el
+++ b/evil-lisp-state.el
@@ -33,15 +33,15 @@
;; ----------
;; To execute a command while in normal state, a leader is used.
-;; By default, the leader for each command is `SPC l`.
+;; The leader has to be defined with the function `evil-lisp-state-leader'.
;; By default, any command when executed sets the current state to
;; `lisp state`.
-
-;; By example, to slurp three times while in normal state:
+;;
+;; For example, to slurp three times while in normal state:
;; <leader> 3 s
;; Or to wrap a symbol in parenthesis then slurping two times:
;; <leader> w 2 s
-
+;;
;; Key Binding | Function
;; -------------|------------------------------------------------------------
;; `leader .' | switch to `lisp state'
@@ -92,6 +92,10 @@
;; Configuration:
;; --------------
+;; No default binding comes with the package, you have to explicitly
+;; bind the lisp state to a key with the function `evil-lisp-state-leader'
+;; For instance: `(evil-lisp-state-leader ", l")'
+
;; Key bindings are set only for `emacs-lisp-mode' by default.
;; It is possible to add major modes with the variable
;; `evil-lisp-state-major-modes'.
@@ -100,9 +104,6 @@
;; setting `evil-lisp-state-global' to t. In this case
;; `evil-lisp-state-major-modes' has no effect.
-;; The leader key is `SPC l' by default, it is possible to
-;; change it with the function `evil-lisp-state-leader'.
-
;; If you don't want commands to enter in `lisp state' by default
;; set the variable `evil-lisp-state-enter-lisp-state-on-command'
;; to nil. Then use the `.' to enter manually in `lisp state'
@@ -178,7 +179,6 @@ If `evil-lisp-state-global' is non nil then this variable
has no effect."
:evil-keys (,leader)
:evil-states (normal)
:major-modes ,evil-lisp-state-major-modes)))
-(evil-lisp-state-leader "SPC l")
;; escape
(define-key evil-lisp-state-map [escape] 'evil-normal-state)
- [nongnu] elpa/evil-lisp-state 383de2fdd3 082/125: Remove warning in readme, (continued)
- [nongnu] elpa/evil-lisp-state 383de2fdd3 082/125: Remove warning in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state c0b43aa30e 087/125: Add `Shift-Return` to insert new line and switch to insert state, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 7bd49350df 090/125: Change sp-absorb-sexp binding to `B`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 575de5d980 093/125: Missing autoload on defcustom, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state cff8cfa8a1 095/125: Add MELPA badge, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 701fccf899 097/125: Minor README changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state fc34826f18 099/125: Default behavior for hjkl, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 96d21715bd 106/125: Fix typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 13fc1def92 112/125: Add variable evil-lisp-state-enter-lisp-state-on-command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state ca3fe14475 115/125: Change switch to lisp state from <leader> , , to <leader> ., ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state f4da219005 120/125: Remove default key binding and inform user to explicity define one.,
ELPA Syncer <=
- [nongnu] elpa/evil-lisp-state 7499dc3bd3 039/125: Version 1.2, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 6c41877161 047/125: Add evil-delete-line with key binding `D`, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 09b5bb43ed 052/125: Version 1.5.3, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 41b73ab51f 053/125: Fix insert of left parenthesis, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 4441fb049c 048/125: Update readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 33602d3edc 063/125: Typo in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 10e001ab8c 079/125: Minor change in readme, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 1df2f73902 088/125: Fix Symbol's value as variable is void: evil-lisp-state-backward-prefix, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state 1048c3df17 021/125: Fix redo key-binding, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-lisp-state f40e85f19e 022/125: Remove `w` and `W` for now, seems to not work properly with evil, ELPA Syncer, 2022/01/06