I'm trying to setup some keybinds using functions from the python-x
package. While it works for the simple call (global-set-key (kbd "C-c C-j") 'python-shell-send-line)
, when I try to chain multiple functions using the lambda trick I get <C-return> is undefined
despite having no error at startup. Here is the command I put in the user-config
in .spacemacs :
(global-set-key (kbd "C-RET") (lambda () (interactive) (python-shell-send-line) (next-line)))
python-x
works with python mode but the simple keybind is available everywhere while the chained keybinds are all undefined. Where does it go wrong ?