是否可以获得erlang源代码的行号?

Che*_* Yu 3 emacs erlang

使用emacs并使用erlang代码进行打印.因为作者在git中修改了源代码,所以sourcetree会显示我的行号.如果打印行号,则可以通过行号快速找到它.但是如何配置呢?

Tom*_*Tom 5

您可以使用行号模式,但您甚至可以使用goto-line直接跳转到行号:

`M-g M-g'
`M-g g'
     Read a number N and move point to the beginning of line number N
     (`goto-line').  Line 1 is the beginning of the buffer.  If point
     is on or just after a number in the buffer, that is the default
     for N.  Just type <RET> in the minibuffer to use it. 
Run Code Online (Sandbox Code Playgroud)