efairbanks / cybin

A programming/performance environment for seamless online and offline audiovisual rendering.
28 stars 4 forks source link

Update Emacs keybindings #22

Open jarmitage opened 4 years ago

jarmitage commented 4 years ago

The way cybin-mode defines keybindings makes it kind of difficult to customise since it uses this prefix thing:

https://github.com/efairbanks/cybin/blob/91a797bf23b961890f9b2259b04d6ed724117baa/cybin-mode.el#L300

But anyways, it would be good to have:

(define-key result-map (kbd "<C-return>") 'cybin-send-paragraph)
(define-key result-map (kdb "C-c C-q") . cybin-kill-process)
efairbanks commented 4 years ago

What would be a better way to add keybindings?

jarmitage commented 4 years ago

In tidal.el it's just a big ol' list: https://github.com/tidalcycles/Tidal/blob/master/tidal.el#L380

With no assumption that they should all be prefixed with C-c