Emacs Pymacs Ropemacs return to previous file after goto definition

196 Views Asked by At

I use Emacs + pymacs + ropemacs.I can use C-c g to go to the definition of objects,as mentioned in this answer https://stackoverflow.com/a/2855895/4018217 ,but after I go the definition ,how do I return to the file or the position from where I issued the command.

I have been using bookmark in emacs to navigate till now.

1

There are 1 best solutions below

1
On

With evil-mode, you can use evil-jumper: http://melpa.org/#/evil-jumper . It is a replacement of the jump list with the added feature that it can jump accross files and buffers.

The base use of C-o and C-i in evil are to go to the previous/next position of the cursor in the current buffer. With evil-jumper, we are not limited to the current buffer.