控制台Emacs启用鼠标右键复制

服务器2018-06-09

2.16 Make copy/paste working with the mouse in X11 terminals?

It is possible to disable the mouse support in X11 terminals in order to enable copying/pasting with the mouse. You need to add this line to your dotspacemacs/user-config:

(xterm-mouse-mode -1)

Emacs 默认鼠标是移动光标位置不能像 vim 一样复制文本,但通过上面的配置也能开启复制功能,也可以直接使用 M+x xterm-mouse-mode 临时启用和关闭