Created
March 26, 2012 15:27
-
-
Save JEG2/2205907 to your computer and use it in GitHub Desktop.
This is a solution, but it seems non-ideal.
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
| (defun jeg2s-yank-and-select () | |
| "This is a test command for how to create a selection." | |
| (interactive) | |
| (kill-new "selected") | |
| (yank) | |
| ;; the following works, but I would like to be able to do it without a macro | |
| (kmacro-exec-ring-item (quote ("" 0 "%d")) nil)) | |
| (global-set-key (kbd "C-c y") 'jeg2s-yank-and-select) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment