[英]Emacs: how can i just show the next line when i reach the last line of the view?
[英]How can I get emacs to show line numbers when the 'text-mode-hook appears not to be working?
我正在尝试使用setnu.el在emacs中给我行号,正如您可能想像的那样,我几乎希望在每种模式下使用。 似乎在Emacs中执行此操作的首选方法是使用
(add-hook 'text-mode-hook 'turn-on-setnu-mode)
但这对我不起作用。 使用
(add-hook 'emacs-lisp-mode-hook 'turn-on-setnu-mode)
当我编辑emacs lisp文件时,效果很好,但是我希望在所有文本查看中都使用行号,并且不想对init.d文件中的每种文件都有特殊情况。 帮助将不胜感激。
Linum似乎以emacs> = 22分发。
尝试:
(require 'linum)
然后使用切换行号的显示
M-x linum-mode
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.