From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: James Nguyen Newsgroups: gmane.emacs.devel Subject: Re: Native display of line numbers Date: Mon, 19 Jun 2017 09:33:04 -0700 Message-ID: References: <83lgoqzm0v.fsf@gnu.org> <83zid5xt8o.fsf@gnu.org> <1DCA149D-6E05-4B0F-BDA0-3A01CE23077C@fastmail.com> <8337awxab9.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1497890012 13516 195.159.176.226 (19 Jun 2017 16:33:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Jun 2017 16:33:32 +0000 (UTC) Cc: emacs-devel@gnu.org, mathias.dahl@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 19 18:33:27 2017 Return-path: Envelope-to: ged-emacs-devel@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 1dMzcC-0002xH-KA for ged-emacs-devel@m.gmane.org; Mon, 19 Jun 2017 18:33:25 +0200 Original-Received: from localhost ([::1]:43459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMzcE-00027j-Q9 for ged-emacs-devel@m.gmane.org; Mon, 19 Jun 2017 12:33:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMzc6-00027S-C5 for emacs-devel@gnu.org; Mon, 19 Jun 2017 12:33:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMzc5-0006sN-7g for emacs-devel@gnu.org; Mon, 19 Jun 2017 12:33:18 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:57105) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dMzbz-0006nk-QY; Mon, 19 Jun 2017 12:33:12 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4C3FF20827; Mon, 19 Jun 2017 12:33:11 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 19 Jun 2017 12:33:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=TI42NW8j6UV62SaOco cFfkjuHETu8zsZu0N1amSLi/Y=; b=dVZIsv2WTxa0kUhozDyeACm/7k0V595xww wsP/C3wIiLnHPeVfb4XBDH9oLMMMnmjo73YA2qF/msw/S+O0SNa7hFqNiCVCOhqx toIGlqIocWIrPoDX78AQOMiqmveusyqbVtw71DkPSBNJMav6sev45k5Pw1tVoWpm +8c/yY0MeA53/4PUcYA6NPQ/lmRlKm+yYUkGjsxYL1TqIaa/cxse9uVDk04BSbfM IioJt4go2JG8zQ9m78ekVROz0vVqzHqcWFf9qIk7qVvLCcGpu2dN7ij6/e6tZucQ DTFZFDyaf68zMqrYeusQcNf4PBkgLFErZUK4nQBBuHs8w8eeOeGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=TI42NW8j6UV62SaOcocFfkjuHETu8zsZu0N1amSLi/Y=; b=D4HU0+tE 9S0OtnrsyuLy0LAIAkTo0bKOBusw6vgoVGy6EtqrN5bSO6AMz7DBKFmUoBL5U12U UdXKRzIksXowcd0aByyHxvu8c1ENcEhbsUqawwIIQ/0iPCTlb4/g9Wp2/3xITJlw TE6dB4H66wAwqGrt3C8lbegi71QosxjFNLQ5iIIojDKnbnjjVdmMej6g33p3RD0H KxORB7jXgJyfH1ry0g8CcAEfxrieFbAGk5tX99cFBiBxZBG+tTmTms+OqMvOEd6z 9JtXIzSFiuLd8dzEROeHXJVRhXcuhy4BQxR6qYaAh4JF8nAvfDXQO64S+NL2rREU /LfMX2MOlA2qoQ== X-ME-Sender: X-Sasl-enc: kfZ85iqzvsPfUcy41ZUa8WPV5FljhR+3qyaZ/fK6qnDZ 1497889990 Original-Received: from [10.0.1.47] (c-73-231-191-86.hsd1.ca.comcast.net [73.231.191.86]) by mail.messagingengine.com (Postfix) with ESMTPA id 480247E7A3; Mon, 19 Jun 2017 12:33:09 -0400 (EDT) In-Reply-To: <8337awxab9.fsf@gnu.org> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.28 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215782 Archived-At: >> Overlays or just company-mode and its likes? If the former, can you >> show a simple recipe to demonstrate the problems with overlays? I=E2=80=99m not sure, but I included a snippet for company-mode. #+begin_src emacs-lisp :tangle yes (let ((default-directory "~/.emacs.d/")) (normal-top-level-add-subdirs-to-load-path)) ;; M-x list-packages U x to upgrade packages. (setq package-list '(diminish)) ;; Disable in favor of `use-package'. (setq package-enable-at-startup nil) ;; Package Repositories (setq package-archives '(("melpa" . "https://melpa.org/packages/") ("gnu" . "https://elpa.gnu.org/packages/"))) ;; Activate all packages (in particular autoloads). (package-initialize) ;; Bootstrap `use-package'. (unless (package-installed-p 'use-package) (package-refresh-contents) (package-install 'use-package)) (eval-when-compile (require 'use-package)) (require 'diminish) ; for :diminish (require 'bind-key) ; for :bind ;; Install package if not existing. (setq use-package-always-ensure nil) ;; Check loading times with `use-package'. (setq use-package-verbose t) ;; Fetch the list of packages when unavailable. (when (not package-archive-contents) (package-refresh-contents)) ;; Install any missing packages. (dolist (package package-list) (when (not (package-installed-p package)) (package-install package))) (use-package company :ensure t :config (setq company-echo-delay 1) (setq company-minimum-prefix-length 1) (global-company-mode)) (setq-default display-line-numbers 'relative) =20 ;; Type a few characters to trigger autocompletion #+end_src >> Scrolling with what command(s)? #+begin_src emacs-lisp :tangle yes (setq scroll-margin 5 scroll-step 1 scroll-conservatively 10000 scroll-preserve-screen-position 1) (setq mouse-wheel-scroll-amount '(1)) (setq mouse-wheel-progressive-speed nil) (setq mouse-wheel-follow-mouse 't) (pixel-scroll-mode) (setq-default display-line-numbers 'relative) ;; Emacs -Q ;; Visit a file like xdisp.c. ;; Scroll up and down with touchpad in the middle of the file. #+end_src