zk-phi / sublimity

Smooth-scrolling and minimap like sublime editor
492 stars 27 forks source link

Question: Is it possible to have no overlays in the minimap? #41

Closed d1egoaz closed 7 years ago

d1egoaz commented 7 years ago

I'd like to have the minimap to show no colors/overlays, I just want a minimap view of the buffer. Is it possible to make the minimap use, let say, the fundamental-mode?

zk-phi commented 7 years ago

You may put another overlay on the minimap buffer to overwrite all faces with the 'default face.

(add-hook 'sublimity-map-setup-hook
          (lambda ()
            (let ((ov (make-overlay (point-min) (point-max) nil nil t)))
              (overlay-put ov 'priority 100)
              (overlay-put ov 'face 'default))))