From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Arun Isaac Newsgroups: gmane.emacs.help Subject: Re: Relative line numbers (vim like) Date: Sat, 19 Nov 2016 08:03:21 +0530 Message-ID: References: <20161118211159.tkrsyk2y2qifjd3g@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1479522843 9047 195.159.176.226 (19 Nov 2016 02:34:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2016 02:34:03 +0000 (UTC) User-Agent: mu4e 0.9.16; emacs 25.1.1 Cc: help-gnu-emacs@gnu.org To: Anast Gramm Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 03:33:59 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c7vTa-0001O9-9R for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2016 03:33:58 +0100 Original-Received: from localhost ([::1]:39761 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7vTc-00089T-0J for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Nov 2016 21:34:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c7vTA-00089I-Kt for help-gnu-emacs@gnu.org; Fri, 18 Nov 2016 21:33:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c7vT5-0000F3-W1 for help-gnu-emacs@gnu.org; Fri, 18 Nov 2016 21:33:32 -0500 Original-Received: from [117.218.232.8] (port=60178 helo=systemreboot.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c7vT5-0000Ej-Es for help-gnu-emacs@gnu.org; Fri, 18 Nov 2016 21:33:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=systemreboot.net; s=x; h=Content-Type:MIME-Version:Message-ID:Date: In-reply-to:Subject:Cc:To:From:References:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mhHZLBexmM05GAc0qEqHx5c3ohSoYnwMr3HgxHaiF6o=; b=lhFonyPX1qi4bGj0catOZPdXk Xx2SaNiLS6+0sasQ5A8WQghrkF0JWl+Jbo4zHS/IXbq8pSCTmW/sWblx0W+CGOGOUuf9Bd4ojPRX0 8xite443adM9AJHkOMWKvNvGkPSMP1jN4+idWMrecC8vtRtbIbZdZt6bwslxAecCtxytHRug4E3CN LeVyfIK0czJKRZ+CqOdPyTaKqwzYpJ3vr6+nDZX/O5cb3WNFiOmyMU6DxK7PqgH53/Mv9YlGtEh2V 93eqxy9GbIyLPUmxsyKAsYr2YPJjXgETYplv4jy+ruORAoVDwwWl4uSrbYprzt22dHOAioG2i6P+L WzbTLNY9Q==; Original-Received: from [103.194.14.109] (helo=steel) by systemreboot.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1c7vT0-0001KC-LM; Sat, 19 Nov 2016 08:03:22 +0530 In-reply-to: <20161118211159.tkrsyk2y2qifjd3g@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 117.218.232.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111747 Archived-At: --=-=-= Content-Type: text/plain > 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 "") --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJYL7nxAAoJEC4l7othgCuzqPIH/1F+r3s1qWMbkM481UBZnCym 5NZEqUOjyOYuzlTmdkn9FL1lq3EGhix9Ef64VIPNEJ1SCWKxXzJcC2QM3PNGXgsz H/xf6VHpBJ27cABattyzMMgzSsX2Jq1fY5hgD9AVFWmYSbcR8ifJ0Y9GRdeLoXGt 9HM9RYzB+wXu9fIp/wQYxlFiCpjkJZU86H/1FuqLxKi/x+VmhQ1vDOYI9zUEfMHn lGHtD1gF4h73mjuLvll99BUoACbwRDKt9q9ePqjPcKv0+nBxa+CiSzERrKXqvWYM xXRXC2QPUYNW4PD5h4+n7n/Yq0G5i7WjYhooPljjF5RcPfVLzCTPqzbHJgXwGMw= =8SoQ -----END PGP SIGNATURE----- --=-=-=--