I am trying to modify the face list-matching-lines-buffer-name-face
, which is part of the result window of occur
(see replace.el.gz).
Using customize-option
on list-matching-lines-buffer-name-face
, I am experimenting with what works and what doesn't.
In the customization buffer, I can use some other faces to assign to list-matching-lines-buffer-name-face
. For example, reusing magit-bisect-bad
works (sample
shows that directly). Some others, which are in my theme linked above, do not work, for example linum
.
Extract of the theme file:
`(linum ((t (:foreground ,bisque-green+2 :background ,bisque-bg))))
...
`(magit-bisect-bad ((t (:foreground ,bisque-red))))
Why are only some of the faces available to assign to my option?
How do I set the value of list-matching-lines-buffer-name-face
in my theme file? I eventually don't want to set it with customize, I want it to be only for that theme, not in my init file.
I've tried to set faces in my theme file:
`(occur-buffer-name-face ((t (:foreground ,bisque-bg :background ,bisque-green :weight bold))))
`(list-matching-lines-buffer-name-face ((t (:foreground ,bisque-bg :background ,bisque-green :weight bold))))
with no success. The first of these two (occur-buffer-name-face
) I've tried to use in the customize interface, with no luck either.
As a summary, this is what I have:
- The result of
occur
has standard face for buffer names (it is as default, plusunderline
) M-x customize-face
- search for
list-matching-lines-buffer-name-face
- check that the face description on the right of the sample text
sample
only saysunderline
. Thesample
text shows underlined text with default foreground color. - change
underline
tomagit-bisect-bad
. The sample text changes as soon as the face name is done (turns red in my case). - change
magit-bisect-bad
tolinum
Expected behavior: the sample text turns to green foreground, as set by my theme.
Actual behavior: the sample text stays as default foreground.
M-x customize-face
. Say what you do at each step (in each case - setting the var to facelinum
and setting it to facemagit-bisect-bad
), and say what you see in each step, and what you expected/want to see instead.setq
rather thancustom-theme-set-faces
to modifiedlist-matching-lines-buffer-name-face
magit-bisect-bad
, the sample textsample
changes accordingly. No need to apply, set, it changes as soon as the face name is there. This is not the case withlinum
, it does not change.