Skip to content

Instantly share code, notes, and snippets.

Created October 17, 2014 23:33
Show Gist options
  • Save anonymous/d87a27cc544cb4dd2bb1 to your computer and use it in GitHub Desktop.
Save anonymous/d87a27cc544cb4dd2bb1 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