I have tried using CUA mode but that failed to set this keybinding. I have also tried adding:
(global-set-key (kbd "C-x") 'kill-region)
to my ~/.emacs
file. Despite this presently the Apropos buffer (started by pressing Ctrl+h+a) says the following:
kill-region <menu-bar> <edit> <cut>, <S-delete>, C-w..C-x
Cannot open doc string file "DOC"
about the kill-region
command. Any ideas how to get Ctrl-x as the keybinding for cut. Here is my ~/.emacs
file.
C-x
is one such key, you cannot override it withglobal-set-key
, which is not to say it's impossible, it's just that I'd advise against doing that, unless you are absolutely sure of what you are doing (wrt ELisp and programming Emacs). – wvxvw Dec 8 '16 at 9:14emacs -Q
, hitM-x cua-mode
to confirm it works, and then figure out what's interfering in your init file by recursively bisecting it.) In general, I'd suggest that you start training your fingers to use Emacs-style keybindings: it really won't take that long. Otherwise, you're fighting the editor, which largely defeats the purpose of using Emacs. – Dan♦ Dec 8 '16 at 15:05