xyzzyの使い方が分からぬやし 励ましあえ その10at SOFTWARE
xyzzyの使い方が分からぬやし 励ましあえ その10 - 暇つぶし2ch405:sage
07/03/12 21:23:27 hOdwmrwB0
>>404
昔自分用に作ったものなんで、要望とちがうかもしれんけど。
キーバインドは適当にあててください。

(defstruct strong mem)

(defun strong-word (str)
(interactive "sSTRONG : ")
(save-excursion
(goto-char (point-min))
(if (string= str "")
(delete-text-attributes t :test #'eq :key #'strong-p)
(while (scan-buffer str :regexp t :no-dup nil :tail t)
(set-text-attribute (match-beginning 0) (match-end 0)
(make-strong :mem str)
:foreground 7
:background 8)))))

(defun jump ()
(interactive)
(let ((pt (or (find-text-attribute t :test #'eq :key #'strong-p :start (+ (point) 1))
(find-text-attribute t :test #'eq :key #'strong-p :start (point-min)))))
(if pt
(goto-char pt)
(strong-word (read-string "STRONG : ")))))


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch