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?

2 Answers 2


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

  • This works like charm. Oct 2, 2015 at 7:44
  • 2
    @TommiRimpiläinen Nice! Please mark this answer as accepted then. Thanks!
    – user2005
    Oct 2, 2015 at 8:51
  • Please consider accepting this question. It is still on the unanswered list. Thx.
    – Drew
    Feb 11, 2019 at 18:06

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

(setq cua-enable-cua-keys nil)

  • 1
    This is about Ergoemacs, not cua-mode.
    – user2005
    Sep 30, 2015 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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