Skip to content

Instantly share code, notes, and snippets.

@bigtoast
Forked from anonymous/gist:d87a27cc544cb4dd2bb1
Last active August 29, 2015 14:07
Show Gist options
  • Save bigtoast/b6874c584d04372eeb27 to your computer and use it in GitHub Desktop.
Save bigtoast/b6874c584d04372eeb27 to your computer and use it in GitHub Desktop.
(global-set-key (kbd "M-?") 'flash-active-buffer)
(make-face 'flash-active-buffer-face)
(set-face-attribute 'flash-active-buffer-face nil
:background "red"
:foreground "black")
(defun flash-active-buffer ()
(interactive)
(run-at-time "100 millisec" nil
(lambda (remap-cookie)
(face-remap-remove-relative remap-cookie))
(face-remap-add-relative 'default 'flash-active-buffer-face)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment