开发者

In Emacs, how to go back to previous line position after using semantic Jump to Symbol?

开发者 https://www.devze.com 2023-02-09 03:35 出处:网络
I know how to go to a variable definition in Emacs using semantic-mode. It works well in a single file (I think it doesn\'t work if the definition is in another file). Using C-c , j, I can go to the d

I know how to go to a variable definition in Emacs using semantic-mode. It works well in a single file (I think it doesn't work if the definition is in another file). Using C-c , j, I can go to the definition of the variable, but, how do I jump back to the previous line? Currently I use display Symref 开发者_如何学GoC-c , g, and select the displayed symref.

Is there any straight method?


Use:

C-u C-space or C-u C-@

If you want to navigate back between buffers, you can use:

C-x C-space or C-x C-@

This makes Emacs jump to the mark (and set the mark from position popped off the local mark ring) which has usually been set by a previous jump command.

0

精彩评论

暂无评论...
验证码 换一张
取 消