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
0answers
5 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 ...
0
votes
0answers
18 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 &...
1
vote
1answer
53 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.
0
votes
0answers
25 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 ...
1
vote
1answer
17 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 `( ("^\...
0
votes
0answers
16 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 ...
1
vote
0answers
43 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 ...
0
votes
1answer
41 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 ...
1
vote
0answers
16 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 ...
1
vote
1answer
26 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 ...
2
votes
1answer
26 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'...
0
votes
0answers
40 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. ...
1
vote
1answer
78 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 ...
0
votes
0answers
17 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 ...
1
vote
1answer
66 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 ...
1
vote
1answer
67 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 ...
0
votes
0answers
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" :...
0
votes
1answer
35 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 ...
2
votes
1answer
145 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-...
0
votes
0answers
81 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-.+ ...
1
vote
0answers
36 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 ...
0
votes
0answers
29 views

In Org Agenda, show repeating tasks in a different color

I would like to show tasks with a "repeater" schedule or deadline in a different color in Org Agenda. I used counsel-describe-face to explore the various faces available, and read the ...
1
vote
2answers
35 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 ...
5
votes
1answer
178 views

Highlight rectangle and non-rectangle selection at the same time

By default, Emacs highlights the non-rectangular selection; alternatively, you can use (rectangle-mark-mode) to show the rectangular selection. Instead, I'd like to always show both, by highlighting ...
3
votes
0answers
85 views

How can I assign multiple faces for fringes?

Since there is a chance that this is another XY problem I'll provide a context as to how I arrived at the problem in the first place. I'm writing a package that let the user highlight any text with ...
0
votes
0answers
27 views

Why bold faces do not inherit from the `bold` face?

I had tried to use a thin weight font as the default face and a regular weight font as the bold face (try, it's a nice combination), but I desisted because there are a zillion faces that do not ...
0
votes
2answers
59 views

How to remove gray color in Dired mode?

Linux Mint , Emacs 27.2 Dired, Dired+, Dired-k As a result here is the dired mode view As you can see, the names of files: to.do.org to.do.org_archive_2017 to.do.org_archive_2019 are gray. Can I ...
1
vote
1answer
42 views

Color settings with helm

I use helm a lot. I have a problem setting colors. In my init.el I have (require 'helm) (require 'helm-config) ;; change active line color (set-face-attribute 'helm-selection nil :...
0
votes
0answers
48 views

Same face within headline after new line in org mode

A new line within a headline currently results in a different (the default, I guess) face. (Different from the beginning of the headline, I mean.) How can I make the entire headline face the same? MWE ...
0
votes
0answers
8 views

How can I add make faces read-only?

I want to make specific faces read-only. For example, I want to make all org-mode headlines and drawers to be read only (among other things) Pieces of the puzzle I've looked into: Preventing deletion ...
1
vote
0answers
36 views

Orgmode: Show some extra vertical space between level 1 and previous line

I want emacs to show put some vertical margin between my level 1 headers, so that they are more readable. Currently, they are really hard to read: Compare with (I have manually added newlines between ...
0
votes
1answer
112 views

Changing font color with Key bindings?

I've been using Emacs org-mode to primarily take lecture notes for university, and I find that it is remarkably useful and I can usually type everything up fairly quickly. Recently, I've been wanting ...
3
votes
1answer
77 views

Can font faces be dynamically assigned with font-lock-add-keywords?

In all the examples of font-lock-add-keywords I've seen, the font face is static. That is, there is a regex or a matcher function and a literal font face identifier. Is it possible to set the face ...
1
vote
1answer
32 views

Flymake colouring?

I've recently updated my Emacs from 26 to 27, and now the Flymake error indicators are very hard to see - they're now in a very pale rose instead of crimson red. How can I change the colour back? I've ...
0
votes
0answers
15 views

Can cursor's background color will be always be the cell's text color?

iTerm has an option called Smart box cursor color in its setting. Smart cursor color When selected, a block cursor will be displayed in reverse video. If this would result in confusion, then a ...
0
votes
1answer
29 views

Emacs cursor border hides the character

Cursor does not show the bottom section such as _ or bottom part of character g. This is the case in emacs -q -nw file.py and also the case in my init.el file. I am not sure how can I fix this issue. ...
0
votes
2answers
52 views

emacs windows bullet face change

I am running emacs on Windows. I am trying to change the bullet face of org-bullet. Now it looks like this: I did several search and changed my default font to several different types but the problem ...
0
votes
1answer
137 views

Standard Mac/Windows Keybindings for Italics, Bold, and Underline in Org-Mode

Is there a simple way to get command-i, command-b, and command-u to operate in emacs org-mode on Mac in exactly the way that they operate in a typical word processor on Mac (for example, Microsoft ...
1
vote
1answer
48 views

PSGML conflicts with built-in `sgml-mode`

I’ve installed psgml 1.4.0-9 and psgml-html-mode for DTD-aware editing of HTML.* But the built-in sgml-mode/html-mode seems to be causing some problems: some tags are highlighted in font-lock-function-...
0
votes
0answers
14 views

Different colors for different characters in tty-menu-bar

All I want to do is have a different color for different characters for the tty-menu-bar when in a terminal mode. Lets say I have for the menu bar "File", I want the character "F" ...
2
votes
1answer
36 views

How can I make a theme use particular face attributes for a given face in a single buffer?

I'm loading a deftheme theme using (load-theme). I'm very happy with it most cases, but in yaml-mode I'd like to change attributes for font-lock-variable-name-face. How can I make the theme use ...
1
vote
1answer
167 views

Italics not shown in block quotes in orgmode

In my blockquotes in org-mode, the fontification does not pick up on italics. I have looked at this question and answer that says it was fixed several years ago, but my issue persists. I have tried ...
0
votes
0answers
20 views

Format links or dates context sensitive in org-mode headings?

In org-mode I use headings with different font sizes decreasing with the # in org-level-#. In the following Examples, the font size is in brackets and size 5 > size 4 etc. Example: * Heading lvl 1 ...
1
vote
1answer
191 views

How do I change the highlighted background color inside the parenthesis?

I am using pretty much the default theme color however, I do want to change the highlighted background color inside the parenthesis. Is there any specific Face Attributes setting for this specific ...
0
votes
0answers
53 views

Replacing the font of a character using a BDF's glyph

I am trying to create some custom glyphs inside a BDF font file and want to use these inside Emacs afterwards. In order to get started I'd like to change one character (I used the greek alpha ...
3
votes
1answer
525 views

error: Invalid face, org-level-1

(dolist (face '((org-level-1 . 1.2) (org-level-2 . 1.1) (org-level-3 . 1.05) (org-level-4 . 1.0) (org-level-5 . 1.1) (...
0
votes
0answers
32 views

need help with font color in HTML export of code block in org file

I use code/source blocks in org mode to create HTML doc pages. I have my emacs default face as white foreground and black background. When I export to HTML, the background is black and most faces are ...
0
votes
1answer
34 views

Issue with face heading for certain todo keyword in orgmode

When I define todo keywords relative to "done" states, the formatting of the heading disappear as below Where should I start to look ?
0
votes
1answer
29 views

How to customize the rendering of the straight lines in mode line?

Here are two examples of what I mean: The lines are rendered in a different color as the background, so they are clearly seen: The lines are rendered in the same color as the background, so they can ...
0
votes
0answers
50 views

term face font initially works but then falls back to default

I have defined my faces for the term group that way: '(term ((t (:inherit default :family "Courier")))) and all other colours pretty similarly. (I have also tried defining it without using ...

1
2 3 4 5
7