タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

elispとoverlayに関するtomoyaのブックマーク (1)

  • overlayのサンプル - Shohei Yoshida's Diary

    Emacsで文字列を装飾したり、属性を持たせる場合は propertize関数が 使えますが、バッファにある既存の文字列を加工する場合には overlayという機構が使えるようです。 勉強がてらサンプルを書いてみました。 コード (defvar akkari-n-list nil) (defun akkari-n () (interactive) (save-excursion (goto-char (point-min)) (while (re-search-forward "\\(赤座あかり\\)" nil t nil) (let ((lay (make-overlay (match-beginning 1) (match-end 1))) (color (background-color-at-point))) (push lay akkari-n-list) (overlay-pu

    overlayのサンプル - Shohei Yoshida's Diary
    tomoya
    tomoya 2012/08/20
    overlay、CSS で書ければ僕は幸せになれるんだけどなぁ。
  • 1