码迷,mamicode.com
首页 > 系统相关 > 详细

Emacs 显示行数

时间:2019-03-13 21:40:39      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:bsp   student   col   reg   tin   sdn   microsoft   share   零基础   

分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!http://www.captainbed.net

Emacs需要第三方插件显示行号

1  下载 linum.el

2  复制 linum.el 到“/usr/share/emacs/site-lisp/”或者其他 load-path路径下

3  配置 linum.el 到 ~/.emacs(自动创建 .emacs:启动emacs,用鼠标点击Options菜单,随便点击一两个选项,比如点击一下Active Region Highlighting,然后点击Save Options

 

;********************************************************
; *
; *   Author : sunboy_2050
; *   Date   : 2012-07-31
; *   File   : ~/.emacs
; *
; *
; ********************************************************/
(require ‘linum)

;;; show line numbers in buffer
;;; run M-x linum-mode

;;; show line numbers in all buffers
;;; run M-x global-linum-mode

(global-linum-mode t)

 

 

4  或者在Emacs下执行 M-x linum-mode 来显示或者取消行号

M-x : Alt + x

输入: linum-mode

 

5  配置效果如下:

技术图片

 

 

 

参考推荐:
Emacs 快捷键

Windows 配置 linum.el

Linux 配置 linum.el

emacs 显示行号

 

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!http://www.captainbed.net

Emacs 显示行数

标签:bsp   student   col   reg   tin   sdn   microsoft   share   零基础   

原文地址:https://www.cnblogs.com/siwnckhhw/p/10526194.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!