Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs minimap: change color of screen zone

Tags:

emacs

colors

By default the color of the area in the minimap that shows which part of the source code is being viewed on the screen right now is red. I find that very distracting. Is there a way to change that?

like image 541
lo tolmencre Avatar asked Dec 08 '25 16:12

lo tolmencre


1 Answers

You can also configure the color in your emacs file if it's helpful.

Use the function custom-set-faces:

;; changing colors
(custom-set-faces
  '(minimap-active-region-background
    ((((background dark)) (:background "#2A2A2A222222"))
      (t (:background "#D3D3D3222222")))
    "Face for the active region in the minimap.
By default, this is only a different background color."
    :group 'minimap))

For more: https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Faces.html

like image 52
Arthur Colombini Gusmão Avatar answered Dec 12 '25 13:12

Arthur Colombini Gusmão