The current line numbers is visible in the modeline and you can use the goto-line to jump to a specific line.
goto-line
How to use goto-line in a sentence. Live example sentences for goto-line pulled from indexed public discussions.
Editorial note
The current line numbers is visible in the modeline and you can use the goto-line to jump to a specific line.
Quick take
The current line numbers is visible in the modeline and you can use the goto-line to jump to a specific line.
Example sentences
In Emacs, the commands don't take line numbers as arguments, except for goto-line.
M-g M-g runs goto-line as well ( on my default installation ).
I liked having F2 = goto-line (rather M-g g) and F3 = compile.
Emacs offers goto-line on M-g g or M-g M-g, which admittedly is not the handiest of key sequences; I've been thinking about rebinding that to be more useful, but I don't use it often enough to really need to.
{+} For myself, I like M-i for overwrite-mode, so I don't have to get to the Insert key, and M-g for goto-line, which is an xemacs binding I got used to years ago).
Quote examples
BTW, "M-g g" (goto-line) is also bound to "M-g M-g" which I find much easier to type.
I always bind "goto-line" to a single key (like f7).
(global-set-key "\C-cg" 'goto-line) Is handy to navigate quickly to a line number.
The only exception I can’t live without is exactly what you mentioned: (global-set-key "\M-g" 'goto-line) I've used that for so long that my fingers just do it automatically.
Frequently asked questions
Short answers drawn from the clearest meanings and examples for this word.
How do you use goto-line in a sentence?
The current line numbers is visible in the modeline and you can use the goto-line to jump to a specific line.