0

I've read the documentation about customizing but I think my knowledge of Lisp is limiting things a bit. I want to bind a in command mode to move-beginning-of-line and QWERTY q (Dvorak) to move-end-of-line. I tried adding this to my init file:

(define-key xah-fly-key-map (kbd "a") 'move-beginning-of-line)

And, as in "Xah Fly Keys Customization" documentation:

(setq my-nice-keymap (make-sparse-keymap))
(define-key my-nice-keymap (kbd "a") 'move-beginning-of-line)

But none of this worked for me, a in command mode stills gives me the same as M-x. Any suggestion?

  • The command to check a keybinding is M-x describe-key. What does that say? – Realraptor Dec 25 '17 at 20:22
  • For 'a' it gives me: a runs the command execute-extended-command (found in xah-fly-key-map), which is an interactive compiled Lisp function. – João Pedro Dec 25 '17 at 23:14
  • For 'q' (qwerty) it gives me: q runs the command xah-reformat-lines (found in xah-fly-key-map), which is an interactive compiled Lisp function in ‘xah-fly-keys.el’. – João Pedro Dec 25 '17 at 23:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.