Questions tagged [faces]

A 'face' in Emacs is the visual presentation of text using fonts and highlighting. A default face, for example, specifies both the font and the foreground and background colors.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

display a tree of faces

Emacs faces can inherit from one (or more, but this is seldom the case) other faces. I would like to see a tree of all defined faces, with children displayed indented below their parents (or ...
user avatar
  • 290
0 votes
1 answer
22 views

How to change the background color when running in the GNOME Terminal?

I have added (set-background-color "blue") to my ~/.emacs (just for test purposes). When I run Emacs in windowed mode this makes the background color blue (as expected), but when I run Emacs ...
user avatar
0 votes
0 answers
11 views

Fix inconsistent background coloring of org-mode blocks with wrapped lines

When having a source block in a .org document, with line wrapping enabled, the continuation of an indented, long line, that is wrapped to the next line is naturally also indented. The problem is, that ...
user avatar
0 votes
1 answer
35 views

Underline heading in org mode

I would like to customise the appearance of headings in org mode. The goal is to reduce the need for so many different colours. I used the function below to set colours for the headings. (custom-theme-...
user avatar
0 votes
1 answer
30 views

Can't set bold weight for fonts

I trying make the variable-pitch font weight to be bold, as I find the variable-pitch font be very thin and almost not visible clearly, but it doesn't seem to work for neither default nor fixed-pitch ...
user avatar
0 votes
1 answer
45 views

How to change appearance of inline comment in org mode?

I use inline comments in org mode using: @@comment: this is a comment@@ (see method here). I'd like to make @@comment: and @@ disappear and the text within appear greyed out. I set (setq org-hide-...
user avatar
  • 154
0 votes
1 answer
40 views

How to highlight invisible text when using `visible-mode`?

I sometime use visible-mode to show hidden elements in buffers. For example, I have org-hide-emphasis-markersset to t, but I sometimes want to see them. This works very well with visible-mode, however ...
user avatar
  • 1,775
0 votes
0 answers
19 views

Change bidi direction for specific characters in buffer

I use Emacs to write LaTeX, and ran into the same problem as in this question, and for now I do as suggested in the questions answer. I've created some macros for making the process of adding the ...
user avatar
  • 11
1 vote
1 answer
81 views

Cannot enable FACE attributes with (custom-theme-set-faces!)

config.el (custom-theme-set-faces! 'doom-ir-black '(mode-line :foreground "blue") ;;'(mode-line :foreground t) ;; also doesn't work ;;'(mode-line :foreground "#000000&...
user avatar
  • 90
0 votes
1 answer
35 views

How can I apply black color for bold text in highlighted region?

I am using dracula-theme. Only change I did is adding following line under (faces ': (faces '(;; default / basic faces (region :background ,dracula-yellow :foreground ,dracula-black :extend t) ...
user avatar
  • 1,066
0 votes
1 answer
21 views

Conditionally Enable Face Attribute in a Terminal

I'm currently trying to conditionally change the face attributes of two faces related to dap-mode while running Emacs in server-mode inside a terminal (using -nw): (defun my-dap-terminal-hook () ...
user avatar
  • 1,231
1 vote
1 answer
38 views

Face Attributes with Text Properties

Is there any way to have all text with a specific face also receive a specific text-property? As a concrete example, there is a special text-property, line-prefix, that I would like to use for some ...
user avatar
  • 1,231
1 vote
0 answers
67 views

Region ("selection") background color doesn't show

Like most Emacs users I have a setup! But there's one thing I try not to set : faces etc. For one thing I'm not that good with color intuitions. Another: all previous experiences of doing this show it ...
user avatar
  • 295
0 votes
0 answers
54 views

Inheritance of font-lock-comment-delimiter-face

How does inheritance of font-lock-comment-delimiter-face work with font-lock-comment-face? The following uses a different colour for the comment delimiter by setting the foreground colour to font-lock-...
user avatar
  • 159
0 votes
1 answer
24 views

Customize face can use some theme faces, but not all

This is my theme config. 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-...
user avatar
  • 387
1 vote
1 answer
24 views

Occur mode face for buffer names

The result buffer of occur displays the buffer name with some info: 69 matches in 65 lines for "use" in buffer: init.el It's alright when I run occur in only one buffer. I just started ...
user avatar
  • 387
0 votes
2 answers
26 views

Customisation for comment delimiter colour based on light or dark theme

I would like to adapt the emacs customisation for comment delimiter colour to change according to light or dark background. How is this customarily done? (defun annot () "Customisation for ...
user avatar
  • 159
0 votes
1 answer
66 views

Where to put custom-set-faces in the init.el in org-roam context?

I found a code snippet that can be used to have different colors for links and org-roam links on SystemCrafters (aka David Wilson). (custom-set-faces '((org-roam-link org-roam-link-current) :...
user avatar
  • 509
0 votes
0 answers
10 views

How to change the face of only a text segment in org-agenda?

I am trying to do this on my org-agenda. In the example below, I want that the text [MY PROJECT] has a distinct face (nano-strong, for example) than the next line NEXT My next task. If I have a ...
user avatar
1 vote
1 answer
57 views

How can I apply a user-defined fontset to a face?

Say I create a fontset and populate it with fonts: (create-fontset-from-fontset-spec (font-xlfd-name (font-spec :registry "fontset-mine"))) (set-fontset-font "fontset-mine" 'latin ...
user avatar
  • 155
0 votes
0 answers
20 views

custom-set-faces common color variables [duplicate]

I want to fine-tune my syntax highlighting, and have created a separate colors.el file that gets loaded around the beginning of init.el. I often use the same color for multiple entries, and it gets ...
user avatar
1 vote
1 answer
57 views

text-properties: How to add a face + additional face attributes

In this scenario, there exists one or more faces for a particular condition named "foo". When the condition changes to the name of "bar", the goal is to add an additional face ...
user avatar
  • 17.7k
4 votes
1 answer
39 views

Variable for line-wide colouring in emacs org-mode source blocks

What org-mode variable determines whether or not the org-mode block-background applies line wide like so: instead of like so: I am using the gruvbox-dark theme. I will attach the defface as soon as ...
user avatar
2 votes
1 answer
96 views

What is the name of the face that appears in this list of company completions?

If I have company-mode enabled, and I type in company like this. (company) I then see a list of completions that I can select. My question is - apart from the currently selected item, the word ...
user avatar
0 votes
1 answer
86 views

Can TODO headings in org mode inherit part of the heading style, specifically fontsize?

Emacs initiate here, I've just now added different heading sizes for org-mode to my init file, according to the answer on this page: Setting for org-mode bullet font size (custom-set-faces '(org-...
user avatar
  • 1
0 votes
1 answer
37 views

How can I fix vc-annotate colouring?

When I try to view the annotated text / code I can barely read it. Is there a way of changing the colouring or disabling it? See below.
user avatar
  • 111
0 votes
0 answers
133 views

How to correctly inherit from multiple faces (with customize)

I would like a face to inherit properties from two ohter faces org-priority and default The manual reads like this: :inherit The name of a face from which to inherit attributes, or a list of face ...
user avatar
0 votes
1 answer
72 views

How can I make `font-latex-sedate-face` have precedence over `font-latex-math-face`?

In LaTeX mode, the face font-latex-sedate-face highlights commands of the form \foo which are not known by AUCTeX. I'd like commands of the form \foo which appear inside a math environment such as \(\...
user avatar
  • 11
0 votes
0 answers
12 views

Highlighting cited text in notmuch messages

When composing a GNU's message, the cited text gets highlighted with different faces depending on the level. This doesn't seem to work in notmuch out-of-the-box. How do I configure this correctly? It ...
user avatar
  • 1,439
0 votes
0 answers
28 views

Display link font face in same color as the surrounding face

I'd like to remove :foreground color specificity from link face so that it displays in the same color as the surrounding face. For example, in the below image, "link" should be brown and &...
user avatar
  • 173
1 vote
1 answer
81 views

How to prevent the mode line color from changing after the buffer is switched?

like this: The mode line color of the current buffer is darker, I hope the color will not change.
user avatar
0 votes
0 answers
158 views

Changing the color of items in org-mode agenda (depending on keyword/tag)

I'm using a script to translate my calendars from ics to an org file, so that scheduled events appear in my agenda. An entry in the org file has the following format, with CALENDAR being an agenda ...
user avatar
1 vote
1 answer
66 views

font-lock not working with my custom face

I defined a custom face (defface my-face '((t . (:background "green"))) "text") that I want to use for font-lock syntax highlighting. (defvar my-font-lock-keywords `( ("^\...
user avatar
  • 13
1 vote
0 answers
35 views

Cannot change font size in org-agenda in fresh emacs installation

After running this in my shell: $ sudo dnf -y remove emacs $ sudo dnf clean all $ rm -f ~/.emacs $ rm -r ~/.emacs.d $ sudo dnf -y install emacs $ emacs foo.org # existent file Then, within ...
user avatar
1 vote
0 answers
113 views

Consistently change the background color of the echo area

I want the echo area to have a black foreground (for the characters) and blue background. The echo area is the very lowest line in the standard emacs interface, below the mode-line. If there was just ...
user avatar
  • 290
0 votes
1 answer
49 views

How to define a face that blends between two existing faces colors?

When defining a new face, how to blend/interpolate between two existing faces colors? For example - mix the colors foreground of default and the background of the error face with a factor 0.0 being ...
user avatar
  • 7,179
1 vote
0 answers
29 views

Conditional Formatting foreground and background when highlighting selected text

This is a follow-up question to: Interchange Foreground and Background Colors when highlighting selected text. How can I do some conditional formatting? For example I do not want inverse-video if the ...
user avatar
1 vote
1 answer
37 views

Interchange Foreground and Background Colors when highlighting selected text

I use something like this to control the background color of my selected text: (region ((t (:background ,green)) (t :inverse-video t))) However some foreground colors don't go well with ...
user avatar
2 votes
1 answer
32 views

How can I copy the faces of a window's mode-line to its header-line?

I want to move my mode-line to the top of each window. So, I've copied its contents into the header-line. (setq-default header-line-format mode-line-format) (setq-default mode-line-format nil) But, I'...
user avatar
  • 123
0 votes
0 answers
59 views

GUI emacs: What Face Defines Overlay for Truncated Lines in Margin?

I am currently using the emacs GUI. I have a custom theme defined for a particular buffer, but when the text runs over the line, an overlay takes over (presumably handling truncation) in the margins. ...
user avatar
  • 61
1 vote
1 answer
96 views

How to get a character's face if one cannot move point to it?

When I want to find out a character's face, I usually move point to it, and run M-x describe-face. This approach requires being able to move point to the character of interest, which is not always ...
user avatar
  • 2,909
0 votes
0 answers
18 views

Automatically show multiple display types in customize-face

Summary: Is it possible to have customize-face expand "For All Kinds of Display" automatically when needed? I have some faces with different appearances depending on the type of display, for ...
user avatar
  • 293
1 vote
1 answer
100 views

How can I identify this popup face?

I'm trying to find the face that applies to this tooltip in LSP in rust-mode with rust-analyzer, but I'm not seeing anything when I search on: tooltip lsp popup posframe lsp-rust-analyze faces lsp-ui ...
user avatar
2 votes
1 answer
197 views

How does Emacs decide whether a frame's background-mode is light or dark, and how can I affect the decision?

I am finding that in some cases (e.g. when TERM=xterm-16color), the expression (frame-parameter nil 'background-mode) ...evaluates to light when it is in fact a dark background. How does Emacs decide ...
user avatar
  • 2,909
0 votes
0 answers
10 views

Org Quote Face not responding to CJK font

Org Quote face doesn't seem to be responsive to CJK font settings. The following custom settings: '(org-quote ((t (:extend t :background "black" :slant italic :foundry "GOOG" :...
user avatar
  • 645
0 votes
1 answer
49 views

Emacs >27.1: How to highlight in different colors for variables inside `fstring` in python-mode

I am using python-mode which colors the parameters. When I concatinate strings the variable color is represented as different: On the other hand, if I use fstring, the variable is not represented as ...
user avatar
  • 1,066
2 votes
1 answer
182 views

What is this gap, and how do I remove it?

I'm changing the appearance of the tab-bar, and I have the following: There's a gap present between tabs and between the left edge of the frame, despite setting the face attribute :box to nil on tab-...
user avatar
  • 157
0 votes
0 answers
175 views

Customizing faces of tab-line

I've been trying to get tabs showing up on emacs, and I came across the builtin tab-mode. I'm trying to set colors and make it look decent, and I ended up here, which told me to modify tab-line-.+ ...
user avatar
  • 157
1 vote
0 answers
85 views

Is it possible to change font size only for Chinese characters in Org tables?

I want to use different fonts for different languages, for example, Consolas for Latin characters and Microsoft YaHei for Chinese characters. I can do this by M-x customize-face RET default and ...
user avatar
1 vote
2 answers
47 views

emacs startup says "Invalid face: highlight"

When I start up emacs, it prints Invalid face: highlight and then exits. This problem happened after I reinstalled Ubuntu 21.04 from scratch. Any suggestions on how to debug this? I have tried 26.2 ...
user avatar
  • 121

1
2 3 4 5
7