Skip to content

Instantly share code, notes, and snippets.

@ivey
Created July 14, 2010 02:49
Show Gist options
  • Save ivey/474948 to your computer and use it in GitHub Desktop.
Save ivey/474948 to your computer and use it in GitHub Desktop.
(defun insert-current-line ()
"insert the current line number into the current buffer."
(interactive)
(insert (number-to-string (line-number-at-pos))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment