How do I duplicate a whole line in Emacs?
问题 I saw this same question for VIM and it has been something that I myself wanted to know how to do for Emacs. In ReSharper I use CTRL-D for this action. What is the least number of commands to perform this in Emacs? 回答1: I use C-a C-SPACE C-n M-w C-y which breaks down to C-a : move cursor to start of line C-SPACE : begin a selection ("set mark") C-n : move cursor to next line M-w : copy region C-y : paste ("yank") The aforementioned C-a C-k C-k C-y C-y amounts to the same thing (TMTOWTDI) C-a