-
Notifications
You must be signed in to change notification settings - Fork 7
WIP: override-major-mode-keybindings #8
base: master
Are you sure you want to change the base?
Conversation
use-jupyter-eval-pop function for cleaner keybindings where the focus goes to the repl buffer.
So far it's working on 2 machines. |
(defvar use-jupyter-repl-mode nil) | ||
;; (defvar use-jupyter-repl-mode nil) | ||
|
||
(define-minor-mode use-jupyter-repl-mode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be a local package, i.e. a file and then loaded in packages.el, this might also fix needing to use the keybinging twice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file should be in a subfolder local (see for example the +completion/helm layer with helm-spacemacs-help
'( | ||
company | ||
jupyter | ||
smartparens |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i.e. added here and then have an init-use-jupyter-repl...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like this (use-jupyter... :location local)
98ba535
to
d38864e
Compare
For any major-mode, provide the option to override spacemacs repl related keybindings so that a jupyter repl is used instead.
SPC a j t
Checks for kernel. Callsjupyter-repl-associate-buffer
if there is no kernel for the buffer. I think check makes most sense here.Using spacemacs code as a guide:
use-package
:init