summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-09-08 11:14:33 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-09-08 11:14:33 +0200
commit87681ca201844e689b1994587400e60aecc974c3 (patch)
tree178f96c1cf9b943c46afb6afec223d427b4a1976
parent44d4fbb5cf4bed95fdf5c8235ac6c22f6361e230 (diff)
Do without obsolete linum-mode.
-rw-r--r--init.org7
1 files 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