[英]How can I Ctrl + A on emacs?
I'm new to emacs, how can I highlight all text and copy on emacs?我是 emacs 的新手,如何突出显示 emacs 上的所有文本和复制? enter image description here在此处输入图像描述
mark-whole-buffer
(select all) Cx h运行命令mark-whole-buffer
(全选)kill-ring-save
(copy) mw运行命令kill-ring-save
(复制) As with many programs, you can find both "Select All" and "Copy" in the Edit
menu -- where you can also see the aforementioned key bindings being advertised.与许多程序一样,您可以在“ Edit
”菜单中找到“全选”和“复制”——您还可以在其中看到上述键绑定的广告。
As phils said, you can find it in the Edit
menu, with the main keyboard shortcut Cx
h
.正如phils所说,您可以在Edit
菜单中使用主键盘快捷键Cx
h
找到它。
Furthermore, you can see ALL the key bindings by typing ctrl-h
k
and then clicking menu Edit
> Select All
, leading emacs to open an *Help*
buffer containing:此外,您可以通过键入ctrl-h
k
然后单击菜单Edit
> Select All
来查看所有键绑定,从而导致 emacs 打开一个*Help*
缓冲区,其中包含:
<menu-bar> <edit> <mark-whole-buffer> runs the command mark-whole-buffer (found in global-map)
It is bound to s-a, C-x h, <menu-bar> <edit> <mark-whole-buffer>.
If you run emacs on a mac computer, you'll notice the key binding sa
which refers to the mac standard shortcut cmd-a
(press and hold the cmd
modifier and type the letter a
).如果您在 mac 计算机上运行 emacs,您会注意到键绑定sa
指的是 mac 标准快捷方式cmd-a
(按住cmd
修饰符并键入字母a
)。
Otherwise, on any emacs, you may also type Mx
mark-whole-buffer
RET
(which can be useful if you want to insert in an emacs-lisp function) or the sequence M-<
Cx
SPACE
M->
(which can be useful if you want to skip the first line of the buffer for example).否则,在任何 emacs 上,您还可以键入Mx
mark-whole-buffer
RET
(如果您想插入 emacs-lisp 函数,这可能很有用)或序列M-<
Cx
SPACE
M->
(这可能很有用例如,如果您想跳过缓冲区的第一行)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.