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

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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值