emacs - 选择一行以使用 emacs 移动它

标签 emacs textmate

我喜欢 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/

相关文章:

c++ - 如何让 emacs 节奏模式与 C/C++ 的缩写一起工作?

ruby - "Execute and Update ' # => ' Markers"对于 VIM

ruby - 如何在 vim 中启用 ruby​​ 方法可视化

css - Textmate "comment"命令不能为 css 代码正常工作

http - 使用 url-retrieve 解码 gzip-ed 响应主体

Emacs:是否可以将一个特定窗口设置为始终用作 "other window"?

emacs - 如何设置 shell-command-on-region 输出的编码?

emacs - .emacs 可以读取环境变量吗?

vim - TextMate 在 VIM 中跳转到函数?

textmate - 如何将 TextMate 软选项卡设置为 1?