[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9cb3813550: * etc/NEWS: Add instructions for replacing 'linum'. (
From: |
Stefan Kangas |
Subject: |
master 9cb3813550: * etc/NEWS: Add instructions for replacing 'linum'. (Bug#58220) |
Date: |
Wed, 5 Oct 2022 19:34:16 -0400 (EDT) |
branch: master
commit 9cb38135505d65c6d171da721831bb542e1074ae
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
* etc/NEWS: Add instructions for replacing 'linum'. (Bug#58220)
---
etc/NEWS | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/etc/NEWS b/etc/NEWS
index b616c5382c..fc7d89719b 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -443,6 +443,20 @@ We recommend using either the built-in
'display-line-numbers-mode', or
the 'nlinum' package from GNU ELPA instead. The former has better
performance, but the latter is closer to a drop-in replacement.
+1. To use 'display-line-numbers-mode', add something like this to your
+ Init file:
+
+ (global-display-line-numbers-mode 1)
+ ;; Alternatively, to use it only in programming modes:
+ (add-hook 'prog-mode-hook #'display-line-numbers-mode)
+
+2. To use 'nlinum', add this to your Init file:
+
+ (package-install 'nlinum)
+ (global-nlinum-mode 1)
+ ;; Alternatively, to use it only in programming modes:
+ (add-hook 'prog-mode-hook #'nlinum-mode)
+
---
** The thumbs.el library is now obsolete.
We recommend using 'M-x image-dired' instead.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9cb3813550: * etc/NEWS: Add instructions for replacing 'linum'. (Bug#58220),
Stefan Kangas <=