Created
June 27, 2012 03:22
-
-
Save hidsh/5aaa50ff191f36882ba8 to your computer and use it in GitHub Desktop.
insert-horizontal-line
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
;; in discrete.l | |
isearch中に | |
C-w 選択範囲を1語前方(右)へ拡張 | |
C-h 選択範囲を1語後方(左)へ拡張 | |
C-y 選択範囲を行末まで拡張 | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;@@@ insert-horizontal-line | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(defun insert-horizontal-line (&optional (n 40)) | |
(interactive "*p") | |
(insert "-" n) | |
(newline)) | |
(global-set-key '(#\C-x #\-) 'insert-horizontal-line) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment