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?
Asked
Active
Viewed 101 times
0
Mirzhan Irkegulov
- 1,088
- 1
- 9
- 16
2 Answers
1
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. – Tommi Rimpiläinen Oct 02 '15 at 07:44
-
2@TommiRimpiläinen Nice! Please mark this answer as accepted then. Thanks! – Oct 02 '15 at 08:51
-
Please consider accepting this question. It is still on the unanswered list. Thx. – Drew Feb 11 '19 at 18:06
-1
Maybe you have CUA-mode enable so you can do:
(setq cua-enable-cua-keys nil)
djangoliv
- 3,169
- 16
- 31