Emacs-008-边栏行号显示

Emacs-008-边栏行号显示
Emacs中,边栏行号显示比行号模式要直观多了。开启可以通过命令输入的方式开启,用到的命:linum-mode。这个命令也有点像开关的行为,重复输入会不断进行设置状态的翻转。
通过linum-mode开启的效果:

 


再次输入,出现的效果:


 
如果希望Emacs启动的时候就开启这个功能,需要在.emacs配置文件中加入以下配置:
(global-linum-mode t)
目前我个人的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 :width normal)))))
;; Disable files backup function
(setq make-backup-files nil)
(setq line-number-mode t)
(global-linum-mode t)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值