1

So I would like to change the color of the arrow that shows the text is being wrapped. Specifically the red arrow shown here:

enter image description here

I have tried searching myself and the closest I came is finding out the sides are called "fringe"s and this answer. But where I hit a stump is figuring out the syntax of the function, set-fringe-bitmap-face bitmap &optional face.

I assume means something like this: (set-fringe-bitmap-face 'left-curly-arrow ((t (:foreground "#616161")))) But my problem is I don't know how to write the correct syntax for a [face] symbol. Also I don't even know if this would do what I want which is just to change the color of that red arrow to something that fits my theme.

Thanks for any help.

1
  • You might want to file an enhancement request (M-x report-emacs-bug) to allow set-fringe-bitmap-face to accept a face spec, and not just a face, as its argument (especially since the doc says "normally FACE should specify only the foreground color"). It should allow a face but also allow a color name, at least one expressed as a foreground face spec. Commented Apr 9, 2017 at 4:58

1 Answer 1

2

I do not know about the color #616161 as my Emacs version doesn't seem to display a big enough difference in the color for me to see it with my naked eye, but here is an example using "yellow".

(defface my-custom-curly-face '((t (:foreground "yellow"))) "Face for fringe curly bitmaps." :group 'basic-faces) (set-fringe-bitmap-face 'left-curly-arrow 'my-custom-curly-face) 
3
  • 1
    Yes, it seems that the FACE arg to set-fringe-bitmap-face needs to be a face (i.e., satisfy facep), and not just a face spec. Commented Apr 9, 2017 at 4:50
  • Hey thank you so much, this worked like a charm :). Commented Apr 9, 2017 at 17:09
  • 1
    Got a little confused looking at the docs thank you for steering me in the right direction. Still getting used to emacs-lisp kind of syntax. Commented Apr 9, 2017 at 17:14

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.