The Computer Oracle

How to jump back to the last position of the cursor in emacs?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Mysterious Puzzle

--

Chapters
00:00 How To Jump Back To The Last Position Of The Cursor In Emacs?
00:19 Answer 1 Score 15
00:43 Accepted Answer Score 52
01:02 Answer 3 Score 9
01:17 Thank you

--

Full question
https://superuser.com/questions/241939/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#emacs

#avk47



ACCEPTED ANSWER

Score 52


I believe what you are searching for is pop-global-mark, usually bound to C-x C-@ and C-x C-SPC.

The global mark ring is updated automatically on many occasions such as buffer switching, accidental or otherwise.




ANSWER 2

Score 15


You can use the command previous-buffer which in my version (GNU Emacs 23.2.1) is bound to C-x left-arrow by default.

Just type Meta-x describe-key C-x left for further information

There is also winner-mode that binds C-c left arrow to winner-undo which in short allows you to undo any change done to your windows.




ANSWER 3

Score 9


In Spacemacs and Doom Emacs, C-o is bound to evil-jump-backward

GitHub Repositories