Skip to content

xcodebuild/nlinum-relative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Built with Spacemacs License (GPL version 2) MELPA

nlinum-relative

Emacs relative line number based on nlinum-mode

Preview

nlinum-relative

Why this

nlinum is faster than linum because of its use of jit-lock. nlinum-relative only redisplays line numbers when idle which is much more smoother especially with big files.

Install

This package is available on MELPA as nlinum-relative.

(use-package nlinum-relative
    :config
    ;; something else you want
    (nlinum-relative-setup-evil)
    (add-hook 'prog-mode-hook 'nlinum-relative-mode))

Spacemacs

Use develop branch's nlinum layer.

Usage

(require 'nlinum-relative)
(nlinum-relative-setup-evil)                    ;; setup for evil
(add-hook 'prog-mode-hook 'nlinum-relative-mode)
(setq nlinum-relative-redisplay-delay 0)      ;; delay
(setq nlinum-relative-current-symbol "->")      ;; or "" for display current line number
(setq nlinum-relative-offset 0)                 ;; 1 if you want 0, 2, 3...

Related

About

Emacs relative line number besed on nlinum-mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •