bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feature Request: Relative jump using M-x goto-line


From: Jonathan Goldblatt
Subject: Re: Feature Request: Relative jump using M-x goto-line
Date: Sat, 13 Oct 2007 13:50:22 -0400

>>>>> "Sivaram" == Sivaram Neelakantan <nsivaram.net@gmail.com> writes:

    Sivaram> Not this, please!

You might want to try this... You can put it in your .emacs

(defun sivaram-goto-line (line)
  "Special goto-line for sivaram."
  (interactive "s")
  (yow t)
  (if (string-match "^\\+\\|-" line)
      (next-line (string-to-int line))
    (goto-line (string-to-int line))))
(global-set-key "" 'sivaram-goto-line)

It's a little rough, but I'm sure that you can make it do what
you want it to.

Jonathan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]