Skip to content

Instantly share code, notes, and snippets.

@pjones
Created January 13, 2019 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjones/e5b0c6fdc287a548825ee44cab56eb28 to your computer and use it in GitHub Desktop.
Save pjones/e5b0c6fdc287a548825ee44cab56eb28 to your computer and use it in GitHub Desktop.
(defun pjones:ivy-ignore-buffers (buffer)
"Ignore BUFFER if it is already displayed in a window."
(get-buffer-window buffer t))
(add-to-list 'ivy-ignore-buffers #'pjones:ivy-ignore-buffers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment