Created
March 5, 2016 13:41
-
-
Save pogin503/980f3188a84e4f2d66eb to your computer and use it in GitHub Desktop.
This file contains 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
(require 'f) | |
(defun current-line-number () | |
(1+ (count-lines 1 (point)))) | |
(defun my-current-line-info () | |
(interactive) | |
(kill-new (format "%s L%d" | |
(f-filename (f-this-file)) | |
(current-line-number)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment