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, emacs gives me a line number. However, it quickly switches the wire number reading to L??.

Any ideas what could be wrong?

PS I find it almost impossible to find an answer to this question, since the key string (L??) is treated as L(any character)(any character) in search engines - does anyone know a way to fix this?

Any help is greatly appreciated. Thanks in advance!

Chiso

Do you have very long (wide) lines? Have you looked at line-number-display-limit-width ?

line-number-display-limit-width is a variable defined in "C source code". its value is 200

Documentation:
* The maximum line width (in characters) used to display line numbers. Line numbers can be omitted from pattern lines
if the average length of lines near the point is greater than this length .

Related


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

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

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

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

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

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

Counting numbers in Emacs

Josh Suppose I have the following long line selected in Emacs. How can I count how many numbers (or NaNs) I have? I tried it, M-x count-wordsbut I get the wrong numbers. it says 1 line 1135 words and 3565 characters, but there are actually 640numbers 0.967 1.0

Counting numbers in Emacs

Josh Suppose I have the following long line selected in Emacs. How can I count how many numbers (or NaNs) I have? I tried it, M-x count-wordsbut I get the wrong numbers. it says 1 line 1135 words and 3565 characters, but there are actually 640numbers 0.967 1.0

Emacs weird line movement

Joshua Ettinger New to emacs. I'm trying to work on my React project, but everytime I go to a new row it moves the row above back. I'm really not entirely sure what I'm doing with emacs, so please forgive me! Any suggestions or help on how to fix this? this is

Emacs line numbering performance

Barry Kelly I tried linumand nlinum. Both have horrible performance on files with 100k+ lines. $ for x in {1.100000}; do echo $x; done > 100k.txt $ emacs -q 100k.txt M-x load-library linum M-x linum-mode M-> ;; it's not too bad to go to end of file M-< ;; now

Line highlighting in emacs

Vivek Kumar The IM I am using does not support viewing previous chats, nor can I change the IM. So I have to copy the chats to a text file every time. I'm using Emacs, is there some way to highlight the line containing the following participant name? ===> **[V

Emacs copy current line

dark sky Duplicating lines in Emacs is very unintuitive and difficult for some reason. Please let me know if I'm doing something wrong here. Surprisingly, Emacs doesn't have this feature by default. I am trying to write a function that copies rows. I have alwa

Emacs indentation for floating point numbers

username Suppose a text file looks like this: 0.00 33.90 -93.9 0.00 43.90 -93.9 10.00 53.90 -93.9 10.00 63.90 -93.9 -100.00 10.00 -7.0 -100.00 9.00 -8.0 100.00 9.00 -9.0 100.00 63.00 -10.0 A suitable em

Emacs dabbrev expand entire line

lemur Is it possible to do the whole line in emacs? I mean something like vim C-x C-l- like dabbrev-expanda full line. Rorschach Yes, take a look hippie-exp, it's part of basic emacs. Specifically, add try-expand-lineto hippie-expand-try-functions-list. Person

Emacs dabbrev expand entire line

lemur Is it possible to do the whole line in emacs? I mean something like vim C-x C-l- like dabbrev-expanda full line. Rorschach Yes, take a look hippie-exp, it's part of basic emacs. Specifically, add try-expand-lineto hippie-expand-try-functions-list. Person

Set regex in emacs header line

Rob F So I'm new to emacs lisp and I have a long file with a wall of text separated by date. Sometimes I can't see the date I want to read without scrolling up and losing my position, so I decided to see it all the time. After skimming the manual, borrowing co

CEDET (command line mode) in emacs

termite I'm trying to get setup and android development on my Mac using Emacs and CEDET (I hate Eclipse and I want to keep using emacs, but I want autocomplete so this setup seems perfect). However, I would like to use emacs in the terminal. I have a problem w

Emacs dabbrev expand entire line

lemur Is it possible to do the whole line in emacs? I mean something like vim C-x C-l- like dabbrev-expanda full line. Rorschach Yes, take a look hippie-exp, it's part of basic emacs. Specifically, add try-expand-lineto hippie-expand-try-functions-list. Person

Highlight line numbers (except line numbers) in vim

Jin I'm set numberin vimrc and I want to highlight lines with the mouse cursor without selecting the line number, kind of like how MacVimto do it. I know this MacVimis a native application vimand is subject to the conditions of the shell/terminal it is in. Is

Highlight line numbers (except line numbers) in vim

Jin I'm set numberin vimrc and I want to highlight lines with the mouse cursor without selecting the line number, kind of like how MacVimto do it. I know this MacVimis a native application vimand is subject to the conditions of the shell/terminal it is in. Is