Separating line numbers from text in Terminal: Emacs


username

When I run emacs in terminal mode with the global-linum-mode option enabled, the line numbers are very close to my text, which really annoys the eyes. Is there a way to separate line numbers from text in Emacs?

Anton Kovalenko

Try setting linum-formatto "%d "(note the spaces).

If you want right-aligned line numbers ( 'dynamicwhich are provided by default linum-format), there's more work to do . Maybe something non-trivial should be done in linum-before-numbering-hook.

Related


Separating line numbers from text in Terminal: Emacs

username When I run emacs in terminal mode with the global-linum-mode option enabled, the line numbers are very close to my text, which really annoys the eyes. Is there a way to separate line numbers from text in Emacs? Anton Kovalenko Try setting linum-format

Separating line numbers from text in Terminal: Emacs

username When I run emacs in terminal mode with the global-linum-mode option enabled, the line numbers are very close to my text, which really annoys the eyes. Is there a way to separate line numbers from text in Emacs? Anton Kovalenko Try setting linum-format

Separating line numbers from text in Terminal: Emacs

username When I run emacs in terminal mode with the global-linum-mode option enabled, the line numbers are very close to my text, which really annoys the eyes. Is there a way to separate line numbers from text in Emacs? Anton Kovalenko Try setting linum-format

Emacs line numbers

flood I'm having trouble getting line numbers in an emacs buffer. I have the following numbers in my init file: (setq line-number-display-limit 2000000) and I have verified that it has line number mode turned on. When I first enter the (~500) line buffer, emac

Emacs line numbers

flood I'm having trouble getting line numbers in an emacs buffer. I have the following numbers in my init file: (setq line-number-display-limit 2000000) and I have verified that it has line number mode turned on. When I first enter the (~500) line buffer, emac

How to copy and text from terminal to (GTK-)emacs?

student If I select text in the terminal (in my case urxvt) and then middle click to the emacs window (GTK) it pastes the selected text from the terminal. Since I don't want this behavior for the middle mouse button, I usually add this to my .emacsfile: (defin

How to copy and text from terminal to (GTK-)emacs?

student If I select text in the terminal (in my case urxvt) and then middle click to the emacs window (GTK) it pastes the selected text from the terminal. Since I don't want this behavior for the middle mouse button, I usually add this to my .emacsfile: (defin

Open terminal from emacs

student Is there a quick way (keyboard shortcut) to open a terminal emulator (urxvt in my case) in the same directory as the file currently in the emacs buffer ? Ram This combination M-!allows you to launch shell commands. You can use it to start a separate on

Open terminal from emacs

student Is there a quick way (keyboard shortcut) to open a terminal emulator (urxvt in my case) in the same directory as the file currently in the emacs buffer ? Ram This combination M-!allows you to launch shell commands. You can use it to start a separate on

Read numbers from a specific line in a text file

Matthew Leman What I want to do is to read each line of the text file separately, then first find a specific string, and if that string is found, read the integer in that line. Here's what the string looks like: { "SmartCursorToggle": true, "MapEnabled": true,

Find all line numbers of words from text

ZpCikTi I wrote a method which has to find all the line numbers of the word and print it. input must follow Word:works/*(just one in file)*/Line Number:[7] Word:run Line Number:[3,7,9] Word:we Line Number[5,8]

Read numbers from a specific line in a text file

Matthew Leman What I want to do is to read each line of the text file separately, then first find a specific string, and if that string is found, read the integer in that line. Here's what the string looks like: { "SmartCursorToggle": true, "MapEnabled": true,

Read numbers from a specific line in a text file

Matthew Leman What I want to do is to read each line of the text file separately, then first find a specific string, and if that string is found, read the integer in that line. Here's what the string looks like: { "SmartCursorToggle": true, "MapEnabled": true,

How to extract tests line by line from a text file in terminal?

User 483937 So I have a .sh script that needs to fetch a lot of files. I have a text file like this http://www.website.com/w4w4wbvert9rtr/video.mp4 http://www.website.com/wserteg444gs4r/video.mp4 http://www.website.com/9we75y49wc45gr/video.mp4 http://www.websi

How to extract tests line by line from a text file in terminal?

User 483937 So I have a .sh script that needs to fetch a lot of files. I have a text file like this http://www.website.com/w4w4wbvert9rtr/video.mp4 http://www.website.com/wserteg444gs4r/video.mp4 http://www.website.com/9we75y49wc45gr/video.mp4 http://www.websi

How to extract tests line by line from a text file in terminal?

User 483937 So I have a .sh script that needs to fetch a lot of files. I have a text file like this http://www.website.com/w4w4wbvert9rtr/video.mp4 http://www.website.com/wserteg444gs4r/video.mp4 http://www.website.com/9we75y49wc45gr/video.mp4 http://www.websi

Add line numbers to GNU Emacs

Akma How to add line numbers in Emacs? Please explain, I am an absolute beginner. monster dragon If you run it in default mode, it's in the menu: Options > Show/Hide > Line Numbers. Then select Options > Save Options to save it for later sessions. If you run i

Add line numbers to GNU Emacs

Akma How to add line numbers in Emacs? Please explain, I am an absolute beginner. monster dragon If you run it in default mode, it's in the menu: Options > Show/Hide > Line Numbers. Then select Options > Save Options to save it for future sessions. If you run

Copy long single line text with unwanted newlines from terminal

Tim locate ... | lessOutputs a long path that, while actually a line, appears as multiple lines in the terminal. I copied the path from the terminal by selecting the text with the mouse and clicking Ctrl+ Shift+ C. When I paste this into a text file, the unwan

Copy long single line text with unwanted newlines from terminal

Tim locate ... | lessOutputs a long path that, while actually a line, appears as multiple lines in the terminal. I copied the path from the terminal by selecting the text with the mouse and clicking Ctrl+ Shift+ C. When I paste this into a text file, the unwan

Italics in Emacs on text terminal (rxvt-unicode)

Igor I'm using Emacs running in urxvt and I can't get italics to work in Emacs despite terminal support. Here is my current setup: I haven't set it yet $TERM, so it's the default rxvt-unicode-256color. Mine is ~/.Xdefaultsdefined URxvt.font: xft:Inconsolata:si

Italics in Emacs on text terminal (rxvt-unicode)

Igor I'm using Emacs running in urxvt and I can't get italics to work in Emacs despite terminal support. Here is my current setup: I haven't set it yet $TERM, so it's the default rxvt-unicode-256color. Mine is ~/.Xdefaultsdefined URxvt.font: xft:Inconsolata:si

Emacs line numbers are set to "??" in the status bar

bph I'm having problems with emacs(24), occasionally without line numbers. The settings in the status bar are ??, e.g. U:--- filename All (1000, 4) (Conf[Unix]) Switch to: U:--- filename All (??, 4) (Conf[Unix]) It's a bit annoying and I'd

Emacs line numbers are set to "??" in the status bar

bph I'm having problems with emacs(24), occasionally without line numbers. The settings in the status bar are ??, e.g. U:--- filename All (1000, 4) (Conf[Unix]) Switch to: U:--- filename All (??, 4) (Conf[Unix]) It's a bit annoying and I'd

Emacs line numbers are set to "??" in the status bar

bph I'm having problems with emacs(24), occasionally without line numbers. The settings in the status bar are ??, e.g. U:--- filename All (1000, 4) (Conf[Unix]) Switch to: U:--- filename All (??, 4) (Conf[Unix]) It's a bit annoying and I'd

Why should there be whitespace for line numbers in Emacs?

caterpillar I (global-linum-mode t)use to display line numbers in Emacs. This worked fine until I used the ctrl+ up/ downcommand ( forward-paragraphand backward-paragraph) to navigate the buffer, at which point some line numbers were displayed incorrectly (see

Emacs - Empty lines have no line numbers

Kirill Novikov I am trying to set line numbers in Emacs. Linum works great, but when I open both buffers, the numbering of empty lines disappears. I am using Manjaro Linux. Emacs works in the terminal. Here is the screenshot. Code in .emacs file: (add-hook 'fi

Emacs line numbers are set to "??" in the status bar

bph I'm having problems with emacs(24), occasionally without line numbers. The settings in the status bar are ??, e.g. U:--- filename All (1000, 4) (Conf[Unix]) Switch to: U:--- filename All (??, 4) (Conf[Unix]) It's a bit annoying and I'd

Remove specific line numbers from text file using sed?

Justin Estiel I want to delete one or more specific line numbers from a file. How would I do this with sed? Brian Campbell If you want to delete lines 5 to 10 and 12: sed -e '5,10d;12d' file This will print the result to the screen. If you want to save the re