LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-08-2011, 02:08 PM   #1
casperdaghost
Member
 
Registered: Aug 2009
Posts: 346

Rep: Reputation: 16
line numbering in emacs (as in vi)


I want to enable line numbering in emacs - as is vi, which we use exclusively at work (my boss removed emacs from all the machines in the department.)

In vi you just use :set nu - the is a site that explains that this is possible
http://emacsblog.org/2007/03/29/quic...ine-numbering/

It describes a linenum.el - and I can see the program, but don't understand how to install it.
 
Old 06-08-2011, 02:31 PM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,564
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Which version of emacs have you got? AFAIK, in emacs 23.x you don't need any additional packages. Just add:
Quote:
(global-linum-mode 1)
to ~/.emacs and it should work fine.
 
Old 06-13-2011, 02:40 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,564
Blog Entries: 1

Rep: Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024Reputation: 1024
Has it worked? If it has, please mark this thread as solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
incremental and selective line numbering harkonen Programming 6 02-19-2011 04:01 PM
emacs width line jrdioko Linux - Software 14 07-10-2009 11:48 AM
emacs line formatting help Tinku Linux - Software 1 12-14-2005 03:44 AM
line numbering in ASCII file rohr Programming 4 03-18-2005 09:14 AM
Line number in Emacs as default saurya_s Linux - Software 1 01-28-2004 06:37 AM


All times are GMT -5. The time now is 12:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration