xcodebuild / nlinum-relative

Emacs relative line number besed on nlinum-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:GNU General Public License v2.0


Languages

Language:Emacs Lisp 100.0%