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
4 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 \(\...
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 ...
7
votes
1answer
1k views

Unset inherited face attribute

Suppose I want the face helm-match to have an unset foreground. Unfortunately, helm-match inherits from match so, if I try to unset the foreground normally: (set-face-foreground 'helm-match nil) The ...
0
votes
2answers
135 views

How to get the merged face attributes at point?

The appearance of a given character is determined by faces from various sources and face-remapping-alist. How to determine the properties Emacs ultimately uses after taking all sources into account? ...
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 `( ("^\...
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 ...
0
votes
1answer
288 views

Changing text size doesn't work on all fonts in org-mode

I have the following in my config: ;; set a non programming font for text (when (member "Lucida Sans Unicode" (font-family-list)) (set-face-attribute 'variable-pitch nil :font "...
2
votes
0answers
72 views

replacement for `emacs -xrm Xft.embolden:true -fn Hack-13` for emacs 27.1

For last 2 years (2018-) I've been using emacs -xrm Xft.embolden:true -fn Hack-13 to start emacs w/ suitable sized and 'brightness'ed fonts for me in my systems. What that does gives extra boldness to ...
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 ...
4
votes
1answer
147 views

Org-link font size in the heading

I often use org-links in headings, e.g.: *** Heading [[foo]] **** Subheading [[bar]] And I use different font-sizes for different levels. Now, I would like the face of the link to be of the same ...
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
2answers
178 views

How to make highlights persistent?

I don't want themes. I use bold,italics, and highlights. I also use background colors per file, so the code as in for background need to be embedded inside file. But when I Edit->Text Properties-&...
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 ...
0
votes
1answer
41 views

how to use link path to set the background face?

I would like to use a custom link, i.e. [[h:blue][blue highlighted text]], to create highlighted text. The background color of the highlighted text is specified by the path. I have (org-link-set-...
17
votes
4answers
3k views

Emacs Blue color too dark

Emacs blue (on dark background) is too dark. classA is readable with difficulty in the example below: How to fix the dark blue colour?
1
vote
0answers
17 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
27 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 ...
14
votes
3answers
865 views

How to change faces of org-mode links depending on the link type?

Org-mode offers a variety of different link types ([http], [file], [bibtex], [magit]...). However, they all get the same look defined by the face value for org-link. Is it possible to e.g. change ...
6
votes
1answer
185 views

How to block highlighting of certain nicks in ERC?

Some people in IRC channels I frequent have elected to use extremely common words for their nicks, including "a" and "me". I use erc-hl-nicks, and was able to block those particular nicks from getting ...
1
vote
1answer
63 views

How to use face-remap-set-base to substitute a face for another?

I'd like to locally remap a face to other custom face. The docstring reads: (face-remap-set-base FACE &rest SPECS) Set the base remapping of FACE in the current buffer to SPECS. This causes the ...
1
vote
1answer
169 views

Improving org-block-begin-line, splitting in several faces

The face org-block-begin-line allows to customize the first line of the following block #+BEGIN_SRC lang :var arg1=1 arg2=2 ... #+END_SRC However, I would like to customize the faces within the line,...
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 ...
5
votes
1answer
86 views

Unable to load color "#FFFFFF" (mouse-face)

Using Emacs 27.1 (mac port, BigSur), I get a strange behavior when I set the mouse face color using an hexadecimal description. Running emacs -Q -l show-bug.el, with show-bug.el being: (font-lock-mode ...
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
1answer
114 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 ...
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
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. ...
2
votes
2answers
1k views

customize creates custom-set-faces unintentionally

I just edited the variable org-M-RET-may-split-line with easy costumize, saved and applied. I checked my dotfile right afterwards and noticed that (custom-set-faces '(default ((t (:foreground "#...
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 ...
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
2answers
680 views

Change colours for character differences for diff-mode

I've changed my diff-mode colours according to this article, but the character-based differences are shown in the original(?) and very bright colours, making them quite unreadable. How do I change ...
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 ...
1
vote
1answer
68 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-.+ ...
10
votes
3answers
1k views

Can I change the background color of the inactive minibuffer?

I tried it with the following settings: (add-hook 'minibuffer-setup-hook (lambda () (make-local-variable 'face-remapping-alist) (add-to-list 'face-remapping-alist '(default (:...
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 ...
5
votes
1answer
180 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
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 ...
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 ...
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 :...

1
2 3 4 5
7