|
42 | 42 | :init |
43 | 43 | ;; (progn |
44 | 44 | (spacemacs/set-leader-keys |
45 | | - "ajj" 'jupyter-run-repl |
| 45 | + "aja" 'jupyter-repl-associate-buffer |
| 46 | + "ajc" 'jupyter-connect-repl |
46 | 47 | "ajr" 'jupyter-run-repl |
47 | | - "ajc" 'jupyter-connect-repl) |
| 48 | + "ajs" 'jupyter-server-list-kernels |
| 49 | + ) |
48 | 50 | ;; (spacemacs|add-company-backends :backends company-capf :modes jupyter-repl-mode)) |
49 | 51 | :config |
50 | 52 | (progn |
51 | | - (evilified-state-evilify-map 'jupyter-repl-mode-map |
52 | | - :mode jupyter-repl-mode) |
53 | | - |
54 | 53 | (spacemacs/declare-prefix-for-mode 'jupyter-repl-mode |
55 | 54 | "mf" "file") |
56 | 55 | (spacemacs/declare-prefix-for-mode 'jupyter-repl-mode |
|
70 | 69 | "hn" 'jupyter-repl-history-next |
71 | 70 | "hN" 'jupyter-repl-history-previous |
72 | 71 | "i" 'jupyter-inspect-at-point |
73 | | - "sb" 'jupyter-repl-pop-to-buffer))) |
| 72 | + "sb" 'jupyter-repl-pop-to-buffer) |
| 73 | + |
| 74 | + (when (eq dotspacemacs-editing-style 'vim) |
| 75 | + (evil-define-key '(insert normal) jupyter-repl-mode-map |
| 76 | + (kbd "C-j") 'jupyter-repl-history-next |
| 77 | + (kbd "C-k") 'jupyter-repl-history-previous |
| 78 | + (kbd "C-l") 'jupyter-repl-clear-cells |
| 79 | + (kbd "M-j") 'jupyter-repl-forward-cell |
| 80 | + (kbd "M-k") 'jupyter-repl-backward-cell |
| 81 | + (kbd "C-s") 'jupyter-repl-scratch-buffer |
| 82 | + (kbd "C-R") 'jupyter-repl-history-next-matching |
| 83 | + (kbd "C-r") 'jupyter-repl-history-previous-matching)) |
| 84 | + )) |
| 85 | + |
74 | 86 | (message "jupyter was not found in your path, jupyter is not loaded"))) |
75 | 87 |
|
76 | 88 | (defun jupyter/post-init-company () |
|
0 commit comments