I want to use the same basic keybindings for copy (C-c
), paste (C-v
), cut (C-x
), etc. that are supported in some other software.
How can I do that?
As others commented, cua-mode
does this, which ships with Emacs. Just M-x cua-mode RET
to enable it, or put (cua-mode 1)
in your .emacs
or .emacs.d/init.el
to enable it at startup.
Unless it changed in 24.4, it will also enable using DEL
(usually backspace) to delete (without cutting) a selected region, simply starting to type to overwrite (without cutting) a selected region, and holding down Shift and navigating to select a region, just like all "normal" text editing software does. Possibly some of this functionality has been split up in 24.4; looking into the Emacs manual should tell you.
You also might want to check out ergoemacs mode, https://ergoemacs.github.io/. It remaps emacs keybindings to ones that make more sense to users acclimated to modern editing software, among many other changes.
ergoemacs-mode
is in GNU ELPA, so you can install it directly via M-x package-list
.
cua-mode
.CUA
stands for "Common User Access" and allows you to useC-c
,C-v
,C-x
, andC-z
as you would in other programs (see also the EmacsWiki page). @paprika: do you want to convert your comment to an answer?cua-mode
as part of an answer anyway. And TaylanUB did. :-)scroll-up-command
andscroll-down-command
-- thank you!