[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: visible-bell



矢木です。

弓岡 也守輝 (YUMIOKA Yasuteru) <te-kun@xxxxxxxxxxxxxx> writes:
>visible-bell のことでお聞きしたいのですが、
>(setq visible-bell t) とすると、タイトルバーはフラッシュするのですが、
>window の中身までは反転されません。

ring-bell-function を使えば色々できます。
こんな感じ。

(setq ring-bell-function
      (lambda ()
        (let* ((f 'foreground-color) (b 'background-color)
               (F (frame-parameter nil f)) (B (frame-parameter nil b)))
          (modify-frame-parameters nil (list (cons f B) (cons b F)))
          (sit-for 0)
          (modify-frame-parameters nil (list (cons f F) (cons b B)))
          )))

おわり
健康のためフラッシュさせ過ぎに気をつけましょう。