-
-
Save asummers/7784d40b1bc53ee309777274e9d10997 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
(defadvice kill-ring-save (before slick-copy activate compile) | |
"When called interactively with no active region, copy a single line instead." | |
(interactive | |
(if mark-active | |
(list (region-beginning) (region-end)) | |
(message "Copied line") | |
(list (line-beginning-position) (line-beginning-position 2))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment