General :: Line Numbering In Emacs (as In Vi)

Jun 8, 2011

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 [URL]

It describes a linenum.el - and I can see the program, but don't understand how to install it.

View 2 Replies


ADVERTISEMENT

Programming :: Set Indent In .emacs To Enable New Line Starts From The Same Position Of Previous Line?

Dec 29, 2010

How can I set indent in .emacs to enable my new line starts from the same position of previous line?

like this;

Hello world <enter>
Second Hello world // "S" starts right under first line's "H"

View 4 Replies View Related

General :: Make Mouse Wheel Scroll ONE Line At A Time In Emacs?

Jun 16, 2010

My mouse wheel scrolls 3 lines at a time !

I tried this, it didn't succeed.

View 14 Replies View Related

General :: Pr Command How To Remove Page Numbering

Mar 26, 2010

When using the pr command for formatting simple text files for printing, page numbers are included in the header by default. I figured out how to remove the date from the header (pr -D ""), and how to remove the title (pr -h ""), but for the life of me I can't figure out how to remove page numbering from the header. Anybody know how/if this can be accomplished?

View 1 Replies View Related

Ubuntu :: Code In Emacs File To Start Emacs Maximized?

May 17, 2010

I was using the following code in my .emacs file to start emacs maximized:

Quote:
(defun toggle-fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32

[Code]...

View 2 Replies View Related

Software :: Page Numbering In LaTeX?

Sep 24, 2010

I am working on a literature project, and my school rules say to put the abstract in twice, both in Norwegian and English.

I have gotten LaTeX to accept this, but the page numbering is not good. it seems that I get this order (page numbers in ()

titlepage
Norwegian abstract(I)
blank page (II)
English abstract(I)

[Code].....

will I have to manually set the counter for each part of the preface to get a continuous count? Using report class

View 2 Replies View Related

Ubuntu :: Pdf Logical Numbering/index Modification

Mar 17, 2011

I used this command to merge a book I downloaded by chapters into a single file (I'm putting it here so I don't forget : )

Code:
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=book.pdf 0*.pdf

As you know, many (or most?) books number the first pages using roman numbers, so in the pdf the page #1 is actually the logical page #12.

Also, the combined file doesn't have a logical index (section, subsection, etc.) showing in okular or evince.

Since I have many pdfs in similar condition I was wondering if there's a way to change the numbering to make the first "n" pages use logical roman numbers and add a logical index.

View 1 Replies View Related

Software :: OpenOffice - Edit TOC And Footing Numbering?

Jan 4, 2011

I have a .doc file. The Table on Contents has Roman Numerals as well as the footing. The Table of Contents is linked to the pages and headings. How do I change these to a different numbering system: 1,2,3,? The format is A4 and I want to convert it to letter. Can I do this and keep the links in the TOC to the pages and headings?

View 2 Replies View Related

OpenSUSE Install :: Grub Version Disk Numbering?

Jan 18, 2010

I'm having trouble getting a system to boot. Specifically, I think the MBR is trashed and I don't know how to repair it. I'm scared to experiment The system has a PATA DVD drive, a SATA drive via a motherboard connector and two 3ware RAID controllers. I can boot systems from the DVD drive but when I try to boot from the hard drive grub says Error 2 (which is a stage 1.5 error, I think).

The m/b SATA drive has both a 10.3 and an 11.1 system installed, on partions 2 and 3 respectively. Partition 1 is a swap partition. The RAID arrays are whole-disk LVM systems containing data. I want to run the 10.3 system. The BIOS is set to boot from the DVD then the m/b SATA, and NOT to boot from the RAIDs. Two issues worry me: grub's disk numbering and grub version dependency. If I boot into the rescue system on the 10.3 install DVD it shows the partitioned disk as /dev/sda. If I boot into the rescue system on the 11.1 install DVD it shows the partitioned disk as /dev/sdc. I suppose that means something in the kernel changed?

If I run grub in the 11.1 rescue system, I can say "find /boot/grub/menu.lst" and it reports two files on (hd2,1) and (hd2,2). If I run grub in the 10.3 rescue system it says error 15 file not found.I'm scared to use 11.1 grub to setup hd2 because when I've tried previously I've managed to overwrite the LVM metadata on one of the RAID arrays. Is there some way I might get the find command in the 10.3 grub to work? Or is there some way to test what the 11.1 grub will do that is non-destructive.

View 9 Replies View Related

Ubuntu Networking :: Network Interface Numbering Messed Up?

Oct 6, 2010

I am trying to get my ethernet adapter list to make some sense. This is what ifconfig spits out

Code:
agarzon@euler:~$ ifconfig
eth3 Link encap:Ethernet HWaddr b8:ac:6f:3b:f4:4f

[code]....

View 2 Replies View Related

Ubuntu :: Using The "convert' Command Is There A Way To Start The Numbering At 22 Or 47 Instead Of 0

Jan 30, 2011

when using the "convert' command is there a way to start the numbering at 22 or 47 instead of 0.

View 1 Replies View Related

Ubuntu :: OpenOffice Doesn't Allow Formula Numbering Relative To A Chapter?

Nov 3, 2010

I could not number formula in Open Office writer relative to a chapter. I would like to numbering like 1.1, 1.2, 1.2. 2.1 etc. Is it possible. I searched in Helps, but doesn't found anything!

View 1 Replies View Related

General :: Run Emacs In CLI Inside Of GUI?

Jul 29, 2011

I tried Google search and reading man page options for emacs but couldn't find... If I run emacs in GUI, it starts GUI for emacs. I want to run it in CLI in rxvt. How do I do it?

View 1 Replies View Related

General :: How To Get A Decent Emacs Setup

Mar 11, 2011

I am currently interested in switching from vim to emacs.One of the more compelling reasons for this is the smooth integration with a unix environment. The most experienced emacs users I have seen have a bash prompt at the bottom of their window, with stdout going to a buffer right above it. They then interact with the output of programs such as grep in interesting ways.I am on Ubuntu 10.04 and the default emacs environment does not seem to do much for me in the way of integration. For example, in the M-x shell mode, output from basic commands like ls produce lots of strange characters and hitting the up arrow does not go to previous commands.

View 4 Replies View Related

General :: How To Open Emacs In Its Own Window

Aug 20, 2010

I am doing some project work and for that using the server at college with ssh connection. Every time I try to open emacs on the terminal after connecting, it opens emacs in the terminal itself i.e. not its own window. On my laptop on which ubuntu is installed, emacs always opens up in its own window an thats how I am used to it. There are several problems when it opens in the terminal like when I try to use commands such as M-V, actually terminal's view menu opens up, its very frustrating. Also I am pretty sure that the college server runs on red hat and has X installed on it. So what do I need to do to get my emacs window back.

View 4 Replies View Related

General :: Emacs Is How Much More Than Text Editor?

May 30, 2011

I was reading how you could browse the net with Emacs but then it was stated that it was done with another application like Firefox so this would imply that Emacs is an interpreter would it not? What is Emacs capable of? Is it an interpreter that runs a text editor?

View 11 Replies View Related

General :: Set Ispell Language In Emacs?

Mar 16, 2011

I'm using emacs to write documents in latex. But, I would like to set the spell checker to use english or portuguese language. I've installed the ispell package for english and for portuguese. Now, I would like to set the emacs to use the english or the portuguese language. I can I do that?

View 2 Replies View Related

General :: Web Search Engines And Emacs / Vim

Nov 8, 2010

The facilities offered by any text editor to look for a string are highly superior to those offered by search engines such as that of Google or the one used by LQ>Search. To only speak of the most one elementary that comes to my mind, you can reach 'john smith' by searching with the string 'hn smi' in any decente editor, but I know of no search engine that offers this feature.

On the other hand, I have always heard of the power of Vim and Emacs. For instance, they say there is no thing Emacs cannot do. Lets advocate to the job of adding Google searches the ability to find 'john smith' by using 'hn smi' as the matching pattern. Or to add regular expression capabilities. Could I use Vim/Emacs to solve this problem?

A little light into the meaning of my words: It would be Vim/Emacs the one in charge of making the Internet connection, connecting to Google and send appropriate commands go Google. Then, to look for my string, I would be directly using Vim/Emacs which, upon receiving my commands, would send the appropriate ones to Google and return control to me.

View 2 Replies View Related

General :: Copy From Openoffice To Emacs?

Apr 27, 2011

I want to copy 100 rows from the openoffice calc file to a txt file opened in emacs at console mode, and I can't do it correctly.

I've open an openoffice cal file, and I select all rows and do copy. I've a txt file opened in emacs console. When I do paste, it will only be pasted 25 rows, and not all.

View 1 Replies View Related

General :: EMacs - Cannot Connect To X Server

Oct 8, 2010

I don't know what the problem is. I ssh on to a linux machine and
setenv DISPLAY mylocalhostname:0
emacs temp.temp
Emacs: Cannot connect to X server mylocalhostname:0.
Check the DISPLAY environment variable or use `-d'.
Also use the 'xhost' program to verify that it is set to permit connections from your machine.

View 5 Replies View Related

General :: How To Do Auto Brace In Emacs

Apr 19, 2010

If i type '{' and hit Enter emacs will automatically put '}'. How can i do this?

View 3 Replies View Related

General :: Enable Autoindent In Emacs?

Apr 20, 2010

How to enable autoindent in Emacs?

View 6 Replies View Related

General :: Get Vim Insert Mode In Emacs?

Apr 20, 2010

Is it possible to get vim insert mode in Emacs?

View 2 Replies View Related

General :: Hide The Tool-bar In Emacs Persistently?

Apr 4, 2010

I have installed emacs23 on Linux Mint 8. I would like to hide the toolbar, and I can do it with Options > Show/Hide > Tool-bar. But the Tool-bar comes back next time I start emacs. How can I hide it persistently?

View 2 Replies View Related

General :: Emacs + Git: Auto Commit Every 5 Minutes?

Apr 18, 2010

How can I set up emacs to automatically git commit every time I save an open file or periodically?

View 4 Replies View Related

General :: Copying Text From Emacs Into Other Programs?

Jul 19, 2010

I want to copy part of a file I'm writing in emacs into, say a blog post or something like that. Putting the text into the kill ring doesn't allow me to paste it into another program. As it stands, I have to open the same file in gedit and copy/paste from there. Is there an easier way?

[Weirdly, it works fine the other way round: copying text off a SU answer, for example, I can paste that into emacs with C-y just fine...]

View 2 Replies View Related

General :: Lightweight Web Browser With Emacs-like Keybindings?

Aug 4, 2010

Uzbl uses hjkl for moving around, much like vim does. I was wondering if there was a browser (text based like links, or needing X like uzbl) which would be easy for someone used to emacs key bindings?Or if there is an emacs mode for having a buffer behave like a Links browser, but with emacs keybindings to move around...[For linux systems, please ideally something available through AUR or a debian package or both]

View 3 Replies View Related

General :: Define Ctrl-[ As A Shortcut In Emacs?

Aug 9, 2010

On Linux, the Ctrl-[ key combination appears to be equivalent to hitting the Esc key. I would like to define Ctrl-[ as a shortcut in emacs but I am unable to because by the time the keystroke gets to emacs it looks like the Esc key was pressed. Is there anyway to disable this behavior so that Ctrl-[ simply means Ctrl-[?

View 2 Replies View Related

General :: Executing A Shell Command In Emacs?

Dec 17, 2010

I tried to execute a shell command by M-! cmd RET but it did not work.M-! does not turn up in the microbuffer no matter how many times I press Alt+!.But if I go to Tools menu and select Shell Command... option then it writes M-! to the microbuffer and everything works fine.What is the problem here?

View 2 Replies View Related

General :: Emacs: Startup With No Window System?

Feb 9, 2011

I know to start emacs with no window system, I do:

emacs -nw filename.txt

But, I don't want to specify -nw constantly. What do I add in my .emacs to do this automatically?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved