This question is related to Is it possible to bind
C-u C-x C-xs behavior into
C-x C-x. My main goal is to jump top of the file, type
import and paste a package name and jump back where I was.
I am on the line 10 and copied a word. Than I press
M-<to jump top of the file, move down to line 1 and typed
import and pasted the copied word. Now when I press
C-x C-x, it jumps to the starting point of the pasted word and if I press again it jumps to end of the paster word in the line 1.
0 | <= jumped here and go one line below 1 | import hello_world # (2) type import and 2 | paste hello_world \ 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | | 10 hello_world() # (1)cursor is here | <= (3) I want to jump back here <--------
At this point, I just want to jump pack to point where I was (which is line 10), how can I acheive it?