Emacs shortcut to go to a specific line in a file

M-g g or M-g M-g are the default bindings for goto-line.

And, the easiest way to find this is either M-x where-is RET goto-line RET which will list the bindings for the command goto-line, or you can type C-h b which lists all the bindings for the current buffer (and then you can peruse the bindings to see if goto-line is there, or to discover other useful commands & bindings.

Leave a Comment