Browse Source

Show line numbers when jumping to a line

master
Nicolas Petton 3 years ago
parent
commit
bca51a1324
Signed by: nico GPG Key ID: 233587A47C207910
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      init.el

+ 7
- 0
init.el View File

@ -644,6 +644,13 @@ be global."
(when buffer-file-name
(setq display-line-numbers t)))))
(defun goto-line-with-line-numbers ()
(interactive)
(let ((display-line-numbers t))
(call-interactively #'goto-line)))
(global-set-key [remap goto-line] #'goto-line-with-line-numbers)
;; Local Variables:
;; indent-tabs-mode: nil
;; eval: (flycheck-mode -1)


Loading…
Cancel
Save