Skip to content

Use empty face instead of inheriting default #595

Closed
@cyrus-and

Description

@cyrus-and

Many faces used by this mode inherit the default face, this has the unpleasant consequence that the background is reset in Markdown code blocks with custom background, see for example:

2019-12-06_19-21

My solution is to do something like this:

(custom-set-faces
 `(php-arithmetic-op ((t ())))
 `(php-assignment-op ((t ())))
 `(php-comparison-op ((t ())))
 `(php-function-call ((t ())))
 `(php-object-op ((t ())))
 `(php-paamayim-nekudotayim ((t ())))
 `(php-static-method-call ((t ())))
 `(php-variable-sigil ((t ()))))

But the list is growing longer and longer... Would it be possible to avoid inheriting the default face and use an empty face instead? Would there be any drawbacks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions