- 论坛徽章:
- 0
|
1.C-S-Backspace 删除当前光标以前的字符
2.在.emacs中添加以下代码
(defadvice kill-ring-save (before slickcopy activate compile)
"When called interactively with no active region, copy a single line instead."
(interactive
(if mark-active (list (region-beginning) (region-end))
(list (line-beginning-position)
(line-beginning-position 2)))))
(defadvice kill-region (before slickcut activate compile)
"When called interactively with no active region, kill a single line instead."
(interactive
(if mark-active (list (region-beginning) (region-end))
(list (line-beginning-position)
(line-beginning-position 2)))))
以后就可以使用C-W 和 M-W进行剪切和复制了
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/105228/showart_2086768.html |
|