我喜欢TextMate,它可以通过简单的击键选择一条线来移动它.
Command-shift L (select a line) Control-Command Arrow(up and down) (move the selected line)
我怎么能用emacs做同样的事情?
SO用户,Sanityinc开发move-text.el(来自basic-edit-toolkit.el的摘录 - 由emakswiki常规,Andy Stewart(懒人))
请参阅:在emacs中上下移动行/区域
它很好地完成了这项任务......
M-Up或者M-Down移动当前行(或标记区域的整行).
我已将其添加到http://www.emacswiki.org/emacs/MoveText
编辑底部的绑定以满足您的偏好.
我只是删除了该行,然后将其拉回到新位置.Ca Ck Ck(搬到新址)Cy