emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/code-cells ef9ac93c31: Configuration example for Evil


From: ELPA Syncer
Subject: [elpa] externals/code-cells ef9ac93c31: Configuration example for Evil
Date: Sat, 5 Mar 2022 07:57:19 -0500 (EST)

branch: externals/code-cells
commit ef9ac93c310936e44a4f8b1c50ddc67a7a0286d0
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Augusto Stoffel <arstoffel@gmail.com>

    Configuration example for Evil
    
    Closes #11.
---
 README.org | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/README.org b/README.org
index 109381ebbe..1430863247 100644
--- a/README.org
+++ b/README.org
@@ -103,6 +103,18 @@ follows:
       (define-key map (kbd "TAB") (code-cells-speed-key 'outline-cycle))))
 #+end_src
 
+For Evil users, the following can be used:
+
+#+begin_src emacs-lisp
+  (with-eval-after-load 'code-cells
+    (let ((map code-cells-mode-map))
+      (define-key map [remap evil-search-next] (code-cells-speed-key 
'code-cells-forward-cell)) ;; n
+      (define-key map [remap evil-paste-after] (code-cells-speed-key 
'code-cells-backward-cell)) ;; p
+      (define-key map [remap evil-backward-word-begin] (code-cells-speed-key 
'code-cells-eval-above)) ;; b
+      (define-key map [remap evil-forward-word-end] (code-cells-speed-key 
'code-cells-eval)) ;; e
+      (define-key map [remap evil-jump-forward] (code-cells-speed-key 
'outline-cycle)))) ;; TAB
+#+end_src
+
 ** Handling Jupyter notebook files
 With this package, you can edit Jupyter notebook (=*.ipynb=) files as
 if they were normal plain-text scripts.  Converting to and from the



reply via email to

[Prev in Thread] Current Thread [Next in Thread]