SerialDev / ijanet-mode

Interactive Janet mode
25 stars 7 forks source link

Support to eval sexp at point? #1

Closed ahungry closed 5 years ago

ahungry commented 5 years ago

I see region support, but manually selecting a region to eval is quite at-odds with how evaluation works in all the other lisp likes (Emacs itself, CIDER/clojure, Geiser/Scheme etc.).

Would it be possible to have DWIM type support? (So, if I run an eval sexp - it would eval the code in my current sexp?)

SerialDev commented 5 years ago

https://github.com/SerialDev/ijanet-mode/commit/2821db192fd0733d402cbd1c58f6060aa02ef100#diff-8155c76019af85f68de159a3843ca13bR245

This should do the trick, just add a keybinding for ijanet-eval-sexp-at-point

ahungry commented 5 years ago

Nice, thank you!