由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Display line number in EMACS??????
相关主题
emacs中如何去指定一行emacs how to concatenate two lines?
two emacs problemsHelp -- How to display the list of available printers
关于ssh的问题equivilent $REMOTEHOST in ksh
[转载] 请教三个关于emacs和perl的问题关于display的问题
an unixquestions, Please help!Re: [转载] firewall后面的机器可不可以访问firewall外面的x资源
新换了鼠标,中键不能粘贴了,怎么办? (转载)关于X 窗口的问题 ( setenv DISPLAY ... )
emacs .el filesSGI O2 and 1600SW display
How to see line number in Emacs紧急求助
相关话题的讨论汇总
话题: emacs话题: line话题: display话题: number话题: your
进入Unix版参与讨论
1 (共1页)
g*******g
发帖数: 45
1
Dear all,
I want my souce code displayed like this in EMACS:
001 main()
002 {
003 int a;
004 }
The line numbers can be added automatically to the left of each line. Can
EMACS do that???
b*****e
发帖数: 474
2
en, 这个比较狠, emacs 看来是不行的了.

【在 g*******g 的大作中提到】
: Dear all,
: I want my souce code displayed like this in EMACS:
: 001 main()
: 002 {
: 003 int a;
: 004 }
: The line numbers can be added automatically to the left of each line. Can
: EMACS do that???

l***s
发帖数: 11
3
I know there are a lisp that can display number like this format:
g*******g
发帖数: 45
4
The line numbers can be displayed in the left margin of each line. That's all
I want, no matter what the format is. In my original post I just gave an
example about that. Maybe it confused you a little.
So can you tell me your methods to do that?

【在 l***s 的大作中提到】
: I know there are a lisp that can display number like this format:
l***s
发帖数: 11
5
I don't know which version of your emacs,
but most recommended way is to add following line into your .emacs file
(column-number-mode t)
and restart your emacs .

【在 g*******g 的大作中提到】
: The line numbers can be displayed in the left margin of each line. That's all
: I want, no matter what the format is. In my original post I just gave an
: example about that. Maybe it confused you a little.
: So can you tell me your methods to do that?

g*******g
发帖数: 45
6
Seems doesn't work for my emacs. BTW, where can you see the version number?

all
line.

【在 l***s 的大作中提到】
: I don't know which version of your emacs,
: but most recommended way is to add following line into your .emacs file
: (column-number-mode t)
: and restart your emacs .

N*********r
发帖数: 40
7
this just set the column number display on your status line.

【在 l***s 的大作中提到】
: I don't know which version of your emacs,
: but most recommended way is to add following line into your .emacs file
: (column-number-mode t)
: and restart your emacs .

l***s
发帖数: 11
8
of course,but I think it's enough.
If you still want to display line number.
here is a el file(wb-line-number.el). it would satisfy what you need.
Add this file (byte-compiling it is recommended) to your load-path.
Then add these set of lines to your config:
(set-scroll-bar-mode nil) ; no scroll bar, even in x-window system
(recommended)
(require 'wb-line-number)
(wb-line-number-toggle)
======================================================================
;;; wb-line-number.el --- window-base

【在 N*********r 的大作中提到】
: this just set the column number display on your status line.
1 (共1页)
进入Unix版参与讨论
相关主题
紧急求助an unixquestions, Please help!
登陆到别的主机上运行realplay,如何将图象显示在本机新换了鼠标,中键不能粘贴了,怎么办? (转载)
HELP! about running cxtermemacs .el files
how to change the date attribute of a fileHow to see line number in Emacs
emacs中如何去指定一行emacs how to concatenate two lines?
two emacs problemsHelp -- How to display the list of available printers
关于ssh的问题equivilent $REMOTEHOST in ksh
[转载] 请教三个关于emacs和perl的问题关于display的问题
相关话题的讨论汇总
话题: emacs话题: line话题: display话题: number话题: your