How to copy and paste a whole file in emacs?
Suppose you are in the middle of a file.
(1) navigate to the first character of the file : Use Meta + < (i.e., Meta key + shift + , )
(2) Enter "Ctrl + Space " to activate the select mode
(3) navigate to the last character of the file : Use Meta + > (i.e., Meta key + shift + . )
(4) Enter "Meta + w" to copy
(5) Enter "Ctrl + y" to paste.
Note what is Meta key ?
On Mac is Mac key, On other keyboard is the Alt key, some old keyboard may use ESC key
No comments:
Post a Comment