Chinaunix首页 | 论坛 | 博客
  • 博客访问: 23898
  • 博文数量: 19
  • 博客积分: 1445
  • 博客等级: 上尉
  • 技术积分: 200
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-30 10:52
文章分类

全部博文(19)

文章存档

2011年(1)

2009年(18)

我的朋友
最近访客

分类: LINUX

2009-11-05 10:34:32

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进行剪切和复制了

阅读(374) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~