eschulte / epresent

Presentations in Emacs -- based on Org-mode
183 stars 50 forks source link

Add keybindings for live coding #4

Closed PuercoPop closed 10 years ago

PuercoPop commented 10 years ago

Oi, thanks for epresent it is the no-thrills approach to presentations that I was looking for.

I saw you worked on refreshing the buffer when code was executed but I was unable to execute code (C-c C-c din't work when inside epresent-mode), nor was I able to modify it (C-c ') . So I just added some key bindings

e for edit the source block
x for executing it

The only thing that is missing is that when editing code inside present-mode the cursor is still blank, any pointers on how to fix that?

eschulte commented 10 years ago

Thanks for adding these bindings. I had no problem executing code with C-c C-c, but it's still nice to have a dedicated binding.

As for making the cursor visible when editing, it should be possible to add a function to the org-src-mode-hook which will set the cursor-type variable to something other than nil.

PuercoPop commented 10 years ago

Upon further investigation it was a conflcit with guide-key that was causing the malfunction

eschulte commented 10 years ago

I pushed up another change (524c2def) which should make editing code blocks with org-src-mode a more pleasant experience.

PuercoPop commented 10 years ago

Awesome, many thanks!