I am using Emacs 23.3 on Mac OS X Lion. How can I delete the selected text region with simple key typing—something like delete or Cd ? This works on windows without setting anything specific. How can I implement that in Mac OS X Lion?
您需要启用delete-selection-mode
,然后它将工作;-)
Try Mx cua-mode
. This will change a lot of things about the way Emacs behaves to fit the behavior of other GUI applications. For more information, see MS-: (info "(emacs) CUA Bindings")
.
You can turn it on persistently with Mx customize-option
RET cua-mode
.
If you mean "delete between the mark and the cursor," the normal keybinding for this in Emacs is Cw (Hold down control and press w).
To set the mark, use C-SPC (hold down control and press SPACE).
Selecting a text region and then deleting it is not very common to normal Emacs users. More frequently they use
and others.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.