emacs是否有类似vi的“设置号码”?

时间:2022-06-01 20:32:18

Does emacs have something like vi's “set number”, so that each line starts with its line number?

emacs是否有类似vi的“设置号码”,所以每行都以其行号开头?

2 个解决方案

#1


2  

Take a look at this article. It explains various ways to add line numbers to emacs:

看看这篇文章。它解释了向emacs添加行号的各种方法:

http://www.emacswiki.org/cgi-bin/wiki/LineNumbers

#2


1  

Try adding linum.el to your emacs dir / .emacs file.

尝试将linum.el添加到emacs目录/ .emacs文件中。

#1


2  

Take a look at this article. It explains various ways to add line numbers to emacs:

看看这篇文章。它解释了向emacs添加行号的各种方法:

http://www.emacswiki.org/cgi-bin/wiki/LineNumbers

#2


1  

Try adding linum.el to your emacs dir / .emacs file.

尝试将linum.el添加到emacs目录/ .emacs文件中。