我喜欢 TextMate,它可以通过简单的按键选择一条线来移动它。
Command-shift L(选择一行)
Control-Command 箭头(向上和向下)(移动选定的行)
我怎样才能用 emacs 做同样的事情?
最佳答案
SO用户,Sanityinc开发move-text.el
(摘自 basic-edit-toolkit.el - 由 emakswiki 常客,Andy Stewart (lazycat))
见:Move line/region up and down in emacs
它很好地完成了这项任务......
M-Up 或 M-Down 移动当前行(或标记区域的整行)。
我已将其添加到 http://www.emacswiki.org/emacs/MoveText
编辑底部的绑定(bind)以适合您的偏好。
关于emacs - 选择一行以使用 emacs 移动它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3856117/