作者:義忠仁倫冧沫Bob | 来源:互联网 | 2023-05-19 03:37
Ifrequentlyfindmyselftypingonaline,whenIrealizeIneed(ed)avariabledefinition(orsomet
I frequently find myself typing on a line, when I realize I need(ed) a variable definition (or something similar) on the line above. What I would like is to
当我意识到我需要(编辑)上面一行的变量定义(或类似的东西)时,我经常发现自己在一条线上打字。我想要的是
- press C-return from anywhere on a line and have the cursor move to a newly inserted blank line above, with correct indentation (or at least the same as the original line).
从一行的任何地方按C-return,让光标移动到上面新插入的空白行,并有正确的缩进(或至少与原始行相同)。
- be able to yank any text...
能够抽出任何文字......
- and C-u C-space to get back to the original position
和C-u C空间回到原来的位置
I've managed to do #1, but my emacs-fu isn't strong enough to do the rest.
我已经设法做了#1,但是我的emacs-fu还不够强大,不能做其余的事情。
4 个解决方案