Skip to content

Instantly share code, notes, and snippets.

@v2e4lisp
Created February 18, 2013 17:35
Show Gist options
  • Save v2e4lisp/4979080 to your computer and use it in GitHub Desktop.
Save v2e4lisp/4979080 to your computer and use it in GitHub Desktop.
(defun adapt-minimap-to-current-buffer ()
(interactive)
(when (null minimap-bufname)
(close-all-minimap-buffer)
(minimap-new-minimap)))
(defun close-all-minimap-buffer ()
(interactive)
(let ((windows (window-list)))
(dolist (win windows)
(when (string/starts-with
(buffer-name (window-buffer win))
minimap-buffer-name-prefix)
(delete-window win)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment