Created
July 13, 2020 14:55
-
-
Save JohnL4/0f5298069f8c173607962188a486b8f0 to your computer and use it in GitHub Desktop.
Insert current line number at a place in a file (emacs lisp)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; For use in editing files of programming languages that don't have "current line number" functions. | |
; Looking at you, k6.io. | |
; Include in macro or defun, obviously. | |
(insert (format "%d" (line-number-at-pos))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment