All Projects → xcodebuild → Nlinum Relative

xcodebuild / Nlinum Relative

Licence: gpl-2.0
Emacs relative line number besed on nlinum-mode

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].