all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Isaac <arunisaac@systemreboot.net>
To: Anast Gramm <anastasis.gramm2@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Relative line numbers (vim like)
Date: Sat, 19 Nov 2016 08:03:21 +0530	[thread overview]
Message-ID: <cu7k2c0nqq6.fsf@systemreboot.net> (raw)
In-Reply-To: <20161118211159.tkrsyk2y2qifjd3g@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 610 bytes --]


> I found this (the first answer)
> http://stackoverflow.com/questions/6874516/relative-line-numbers-in-emacs
> and it pretty much works as expected, but I want one thing to change.
> Instead of showing 0 at the current line I want to show the
> actual line number.

Why not use the package linum-relative
(https://github.com/coldnew/linum-relative) as mentioned in the second
answer? I use linum-relative and it works well for me. In order to get
linum-relative to show the actual line number on the current line, you
need to set linum-relative-current-symbol to "".

(setq linum-relative-current-symbol "")

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 454 bytes --]

      reply	other threads:[~2016-11-19  2:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18 21:11 Relative line numbers (vim like) Anast Gramm
2016-11-19  2:33 ` Arun Isaac [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cu7k2c0nqq6.fsf@systemreboot.net \
    --to=arunisaac@systemreboot.net \
    --cc=anastasis.gramm2@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.