Emacs-006-行号模式的开启与关闭
发布日期:2021-06-30 03:33:47 浏览次数:2 分类:技术文章

本文共 954 字,大约阅读时间需要 3 分钟。

Emacs-006-行号模式的开启与关闭

       Emacs内置了一个行号模式,可以显示光标所在的行的行号。可以通过line-number-mode命令进行开关的切换。

       以上是行号模式没开启的时候。

       上面是通过line-number-mode开启后出现的提示与效果。

       上面是从开启到关闭切换你的时候出现的提示。

       如果要在启动的时候开启或者关闭,可以使用.emacs文件进行指定配置。

              开启方式:(setq line-number-mode t)

              关闭方式:(setq line-number-mode nil)

       我自己的配置中设置了功能的常开,目前的emacs配置文件内容如下:

(custom-set-variables

 ;;custom-set-variables was added by Custom.

 ;;If you edit it by hand, you could mess it up, so be careful.

 ;;Your init file should contain only one such instance.

 ;;If there is more than one, they won't work right.

 )

(custom-set-faces

 ;;custom-set-faces was added by Custom.

 ;;If you edit it by hand, you could mess it up, so be careful.

 ;;Your init file should contain only one such instance.

 ;;If there is more than one, they won't work right.

 '(default ((t (:family "Courier New":foundry "outline" :slant normal :weight normal :height 98 :widthnormal)))))

;; Disable files backup function

(setq make-backup-files nil)

(setq line-number-mode t)

转载地址:https://greyzhang.blog.csdn.net/article/details/78905862 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Emacs-007-日历查看
下一篇:Emacs-005-关闭自动备份

发表评论

最新留言

逛到本站,mark一下
[***.202.152.39]2024年04月13日 14时24分20秒