diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2023-09-08 11:14:33 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2023-09-08 11:14:33 +0200 |
commit | 87681ca201844e689b1994587400e60aecc974c3 (patch) | |
tree | 178f96c1cf9b943c46afb6afec223d427b4a1976 | |
parent | 44d4fbb5cf4bed95fdf5c8235ac6c22f6361e230 (diff) |
Do without obsolete linum-mode.
-rw-r--r-- | init.org | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |