From 87681ca201844e689b1994587400e60aecc974c3 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 8 Sep 2023 11:14:33 +0200 Subject: Do without obsolete linum-mode. --- init.org | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/init.org b/init.org index 1536e95..1452f09 100644 --- a/init.org +++ b/init.org @@ -1233,18 +1233,17 @@ Here are a few commands that I used pretty often: (global-set-key (kbd "C-c n") 'my/new-empty-buffer) ;; http://whattheemacsd.com/key-bindings.el-01.html#disqus_thread -(require 'linum) (defun my/goto-line-with-feedback () "Show line numbers temporarily, while prompting for the line number input" (interactive) - (let ((line-numbers-off-p (not linum-mode))) + (let ((line-numbers-off-p (not display-line-numbers-mode))) (unwind-protect (progn (when line-numbers-off-p - (linum-mode 1)) + (display-line-numbers-mode 1)) (call-interactively 'goto-line)) (when line-numbers-off-p - (linum-mode -1))))) + (display-line-numbers-mode -1))))) (global-set-key [remap goto-line] 'my/goto-line-with-feedback) ;; kill current buffer -- cgit v1.2.3