Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created June 27, 2012 03:22
Show Gist options
  • Save hidsh/5aaa50ff191f36882ba8 to your computer and use it in GitHub Desktop.
Save hidsh/5aaa50ff191f36882ba8 to your computer and use it in GitHub Desktop.
insert-horizontal-line
;; 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