Emacs minimap:改变屏幕区域的颜色

时间:2016-04-11 07:12:29

标签: emacs colors

默认情况下,迷你地图中显示当前正在屏幕上查看源代码部分的区域颜色为红色。我发现这很令人分心。有没有办法改变它?

1 个答案:

答案 0 :(得分:3)

如果有用,您还可以在emacs文件中配置颜色。

使用函数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))

更多信息:https://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Faces.html