abo-abo / lispy

Short and sweet LISP editing
http://oremacs.com/lispy/
1.22k stars 133 forks source link

Dvorak keybindings #324

Open gozes opened 7 years ago

gozes commented 7 years ago

I been wanting to try lispy for a while, however, as a Dvorak user the current set of default keybindings make it inpratical to use lispy so would it me possible to have a 'Dvorak mode' where the keys are move around to make it easier for Dvorak users like myself? I know it won't be as ergonomic as the default key binds but it would surely be better then the ju-jitsu I have to do with regular emacs key binds 😄

abo-abo commented 7 years ago

You'll have to paste a bunch of statements like this into your config:

(lispy-define-key lispy-mode-map (kbd "h") 'lispy-left)
gozes commented 7 years ago

thanks! now I'm wandering how wold that affect ivy/avy because I'm sure I will end up stepping over dose in the process also it's not interlay clear to me where this keybinds should move to

    i prettifies code (remove extra space, hanging parens ...)
    xi transforms cond expression to equivalent if expressions
    xc transforms if expressions to an equivalent cond expression
    xf flattens function or macro call (extract body and substitute arguments)
    xr evals and replaces
    xl turns current defun into a lambda
    xd turns current lambda into a defun
    O formats the code into one line
    M formats the code into multiple lines
Misc. bindings:
    outlines navigation/folding (J, K, I, i)
    narrow/widen (N, W)
    ediff (b, B)
    ert (T)
    edebug (xe)

hjkl are very easy to move, this one however not so much

abo-abo commented 7 years ago

hjkl are very easy to move, this one however not so much

I leave this up to you, since I don't really know what the Dvorak layout looks like.

When I decided on the original layout for lispy, my physical keyboard considerations were:

The rest of the keys are mostly mneumonic.