Created
December 27, 2008 16:04
-
-
Save yaotti/40272 to your computer and use it in GitHub Desktop.
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 comment-out-and-paste () | |
(interactive) | |
(save-excursion | |
(kill-ring-save (region-beginning) (region-end)) | |
(comment-region (region-beginning) (region-end)) | |
(goto-char (region-end)) | |
(move-end-of-line 1) | |
(insert "\n") | |
(yank)) | |
(next-line) | |
(move-beginning-of-line 1) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment