Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [linum-mode]

for line numbering modes, such as `linum-mode` and `line-number-mode` minor modes that show line numbers on the left screen edge for ease of editing and navigating. They do not insert line numbers in the file. `line-number-mode` also has a `column-number-mode`, which shows in the mode line.

6
votes
0answers
390 views

Line number (linum, nlinum) grow margin with increase in font size

When I turn on linum-mode or nlinum-modeand increase the font size via C-x C-+ it does not increase the size of the "margin" where the line number is displayed, so only part of the line number is ...
4
votes
0answers
262 views

“Invalid face reference: linum” even load linum after make frame

I want to have line number at buffer, but when I use Emacs server, the Message buffer display the following error: Invalid face reference: font-lock-comment-delimiter-face [2 times] Invalid face ...
4
votes
0answers
91 views

using global-linum-mode with ess with a latex/R knit file

When using global-linum-mode with a latex file that has blocks of R code (*.rnw file) moving in and out of the R code blocks cause the line numbers to disappear until the cursor is moved again. Is ...
3
votes
0answers
99 views

How to hide the extra period in linum mode when you have whitespace mode enabled?

I have linum mode and whitespace mode enabled. This works great except that I want padding in linum mode (which uses a space) and so, instead of there being a space (or a different colored space as I ...
2
votes
0answers
1k views

Show both relative and absolute line numbers in Emacs 26

One of the new features in Emacs 26 is display-line-numbers-mode: Emacs now supports optional display of line numbers in the buffer. This is similar to what linum-mode provides, but much faster and ...
2
votes
0answers
100 views

hide-show with linum

When working on huge files, it seems that when hide-show collapses a large multi-line block, linum still creates hidden overlays for every line in the hidden block leading to unresponsive emacs. Is ...
2
votes
0answers
408 views

Turning relative numbering on (with linum-relative) in Spacemacs only when in normal mode

In Vim I have relative numbering which is turned on most of the time but it's turned off when in insert mode or when the window losses focus (both when changing to another Vim window or when changing ...
1
vote
0answers
148 views

linum-off for nlinum

Many people are advertising nlinum over linum. I had a configuration for linum copied from the linum-off.el script you can find on internet: (require 'linum) (defcustom linum-disabled-modes-list '(...
1
vote
0answers
99 views

Unexpected “secondary” line number labels in org-mode

In .org files—I've seen it only in a file with over 1k lines—emacs sometimes displays a secondary "line number" next to certain headings, like so: The left-most gutter is populated by linum+, but the ...
1
vote
0answers
435 views

Right aligned relative numbering with separator space in Spacemacs using linum-relative

I've been using Vim for a while and now I've discovered Spacemacs and I found it great how it blends Vim ease of editing with Emacs superior power. I really loved some parts of my Vim config, one of ...
1
vote
0answers
777 views

autocomplete popup menu broken emacs 24.5.1

I have recently encountered a problem with autocomplete when used together with linum. When I turn on the global-linum-mode, the emacs only shows part of the popped-up menu of candidates correctly. ...
1
vote
0answers
180 views

helm-M-x and linum-relative

I use the linum-relative package to get line numbers relative to the cursor in the margin. The reason this is useful to me is I drive emacs with speech recognition, and the speech recognizer has a ...
0
votes
0answers
120 views

term without line numbers and highlight for current line

I have the following settings in ~/.emacs: (setq linum-relative-current-symbol "") (linum-mode) (linum-relative-global-mode) (global-hl-line-mode t) In order to supress both these features in ...