xquery-mode / cider-any

Evaluate any buffer in cider – Replaced by Oook
0 stars 1 forks source link

Make key-bindings consistent with Cider and Slime #20

Closed m-g-r closed 7 years ago

m-g-r commented 7 years ago

Hi Artem,

I think these to key-bindings are inconsistent with the bindings of other modes that we use (for Clojure and Common Lisp):

(defvar oook-mode-map
...
    (define-key map (kbd "C-c C-c") 'oook-eval-buffer)
    (define-key map (kbd "C-M-x") 'oook-eval-function)

In Cider and Slime C-c C-c is alwas eval the function / toplevel form at the cursor and C-c C-k is loading the whole buffer:

Cider (Clojure mode):

C-c C-c         cider-eval-defun-at-pointC-c C-c         cider-eval-defun-at-point
C-c C-k         cider-load-buffer

Slime (Common-Lisp mode):

C-c C-c - Compile the top-level form at point.
C-c C-k - Compile and load the current buffer's file.

So I'd propose to make a transition to:

    (define-key map (kbd "C-c C-k") 'oook-eval-buffer)
    (define-key map (kbd "C-c C-c") 'oook-eval-function)

Bye Max