Created
December 24, 2008 04:32
-
-
Save yaotti/39583 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)) | |
(insert "\n\n") | |
(yank) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment