When I command eval-region to a highlighted area, I would like to quickly change to another buffer with C-x b to see the result. However, the first part of this key combination cuts the selected code, even when another shortcut M-x does the same thing. Is there a way to disable the keybinding for C-x wihtout losing the associated functionality of C-x b?


Ergoemacs binds C-x to kill-region by default. You can free C-x and C-c by evaluating:

(setq ergoemacs-handle-ctl-c-or-ctl-x 'only-C-c-and-C-x)

Alternatively, you could tweak ergoemacs-ctl-c-or-ctl-x-delay. C-c and C-x work like the default Emacs keybindings only if you press another key within the specified delay (which is set to 0.2 seconds).

More information can be found here: http://ergoemacs.github.io/cua-conflict.html

| improve this answer | |
  • This works like charm. – Tommi Rimpiläinen Oct 2 '15 at 7:44
  • 2
    @TommiRimpiläinen Nice! Please mark this answer as accepted then. Thanks! – rekado Oct 2 '15 at 8:51
  • Please consider accepting this question. It is still on the unanswered list. Thx. – Drew Feb 11 '19 at 18:06

Maybe you have CUA-mode enable so you can do:

(setq cua-enable-cua-keys nil)

| improve this answer | |
  • 1
    This is about Ergoemacs, not cua-mode. – rekado Sep 30 '15 at 15:51

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.