Skip to content

Temporary display line numbersΒ #2

@manuel-uberti

Description

@manuel-uberti

Hi,

first of all thanks for this great package. I installed it from MELPA like this:

(use-package goto-line-preview          ; Preview line on `goto-line'
  :ensure t
  :bind ([remap goto-line] . goto-line-preview-goto-line))

Since I don't have line numbers permanently enabled, would it be possible to display line numbers only on M-g g?

I did use to have something like this before:

(defun mu-goto-line-with-line-numbers ()
  "Display line numbers temporarily when using `goto-line'."
  (interactive)
  (let ((display-line-numbers t))
    (call-interactively #'goto-line)))

But it doesn't work if I replace #'goto-line with #'goto-line-preview-goto-line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions